Skip to content
This repository has been archived by the owner on Dec 9, 2020. It is now read-only.

magic.html error 404 #39

Open
sansow opened this issue Jan 29, 2018 · 1 comment
Open

magic.html error 404 #39

sansow opened this issue Jan 29, 2018 · 1 comment

Comments

@sansow
Copy link

sansow commented Jan 29, 2018

Hi -

Not sure if this is expected here so want to check. During the authentication flow, after the successful authentication redirected to http://localhost:3984/magic.html#152210 with code suffixed. But getting the 404 error and for end user its confusing. So want to check am I missing anything ?

image

Regards,
Sowmyan

@EricDahlvang
Copy link
Collaborator

Hi @sansow

The MagicNumberView is now one of the AuthenticationOptions. It allows consumers to provide their own page to use for displaying the magic number:

            AuthenticationOptions options = new AuthenticationOptions()
            {
                Authority = ConfigurationManager.AppSettings["aad:Authority"],
                ClientId = ConfigurationManager.AppSettings["aad:ClientId"],
                ClientSecret = ConfigurationManager.AppSettings["aad:ClientSecret"],
                Scopes = new string[] { "User.Read" },
                RedirectUrl = ConfigurationManager.AppSettings["aad:Callback"],
                MagicNumberView = "/magic.html#{0}" //<-- remove this line to use the default
            };

If MagicNumberView is null or empty, the default will be used.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants