A tip sent to me by Brian Douglass...
The way it works is:
- Create a new Server project with Identity activated, but no scaffolding
- Modify Startup.cs to add the AF token as a header
- Create a custom SignIn.razor
- Collects credentials in a form
- OnValidSubmit() after checking validity of credentials
- Make Http call to Login.OnGet() and get the form, with the AF token attached
- Build new request with Credentials + AF token in the Form data + AF token in the header.
- Post the request to Login.OnPostAsync() User credentials are validated
- Response (if successful) contains Authentication Cookie
- Use Oqtane's Interop.SetCookie to add it to the Document
- Magic Use NavigationManager.NavigateTo("/", true)
- The true setting bypasses client-side routing and forces the browser to load a new page from the server
- Voila, the authentication cookie is loaded into the browser, and all A&A facilities work as documented just like Asp.Net Core, but UI/UX is 100% Blazor! ~15 minutes. The rest of SUSISO is downhill from there. Would appreciate a looksee as this is to share with everyone.