0
    
    
        
                    mattw@agilenova.com created
                    
                    
                    
                
                I am interested in redirecting the user to the registration page (/Account/Register) instead of the login page (/Account/Login) in some cases. I believe OpenIddict supports changing the path but I'm not sure how this should be done within ABP or done dynamically.
I have two questions:
- How can I change the login path used by OpenIddict in ABP 6.x?
 - Can I determine the login path during authorization? i.e.) Use a request parameter on authorize to tell openiddict to use a specific login path.
 
Any advice is appreciated!
- Grant Type: Auth Code
 - ABP Framework version: v6.0.1
 - UI type: MVC
 - DB provider: EF Core
 - Tiered (MVC) or Identity Server Separated (Angular): no
 
1 Answer(s)
- 
    0
hi
You can add some parameters on the
OnRedirectToIdentityProvidermethod ofOpenIdConnectOptions.Then get parameters on
OpenIddictSupportedLoginModelclass.https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.authentication.openidconnect.openidconnectevents.onredirecttoidentityprovider?view=aspnetcore-7.0