In order for Open.IdentityServer to issue tokens on behalf of a user, that user must sign-in to Open.IdentityServer.
Login User Interface and Identity Management System¶
Open.IdentityServer does not provide any user-interface or user database for user authentication. These are things you are expected to provide or develop yourself.
Login Workflow¶
When Open.IdentityServer receives a request at the authorization endpoint and the user is not authenticated, the user will be redirected to the configured login page.
You must inform Open.IdentityServer of the path to your login page via the UserInteraction settings on the options (the default is /account/login).
A returnUrl parameter will be passed informing your login page where the user should be redirected once login is complete.
Note
Beware open-redirect attacks via the returnUrl parameter. You should validate that the returnUrl refers to well-known location. See the interaction service for APIs to validate the returnUrl parameter.
Login Context¶
On your login page you might require information about the context of the request in order to customize the login experience
(such as client, prompt parameter, IdP hint, or something else).
This is made available via the GetAuthorizationContextAsync API on the interaction service.