@@ -53,11 +53,11 @@ public async Task<IActionResult> Authorize()
5353
5454 // If prompt=login was specified by the client application,
5555 // immediately return the user agent to the login page.
56- if ( request . HasPrompt ( Prompts . Login ) )
56+ if ( request . HasPromptValue ( PromptValues . Login ) )
5757 {
5858 // To avoid endless login -> authorization redirects, the prompt=login flag
5959 // is removed from the authorization request payload before redirecting the user.
60- var prompt = string . Join ( " " , request . GetPrompts ( ) . Remove ( Prompts . Login ) ) ;
60+ var prompt = string . Join ( " " , request . GetPromptValues ( ) . Remove ( PromptValues . Login ) ) ;
6161
6262 var parameters = Request . HasFormContentType ?
6363 Request . Form . Where ( parameter => parameter . Key != Parameters . Prompt ) . ToList ( ) :
@@ -82,7 +82,7 @@ public async Task<IActionResult> Authorize()
8282 {
8383 // If the client application requested promptless authentication,
8484 // return an error indicating that the user is not logged in.
85- if ( request . HasPrompt ( Prompts . None ) )
85+ if ( request . HasPromptValue ( PromptValues . None ) )
8686 {
8787 return Forbid (
8888 authenticationSchemes : OpenIddictServerAspNetCoreDefaults . AuthenticationScheme ,
@@ -136,7 +136,7 @@ public async Task<IActionResult> Authorize()
136136 // return an authorization response without displaying the consent form.
137137 case ConsentTypes . Implicit :
138138 case ConsentTypes . External when authorizations . Any ( ) :
139- case ConsentTypes . Explicit when authorizations . Any ( ) && ! request . HasPrompt ( Prompts . Consent ) :
139+ case ConsentTypes . Explicit when authorizations . Any ( ) && ! request . HasPromptValue ( PromptValues . Consent ) :
140140 var principal = await _signInManager . CreateUserPrincipalAsync ( user ) ;
141141
142142 // Note: in this sample, the granted scopes match the requested scope
@@ -169,8 +169,8 @@ public async Task<IActionResult> Authorize()
169169
170170 // At this point, no authorization was found in the database and an error must be returned
171171 // if the client application specified prompt=none in the authorization request.
172- case ConsentTypes . Explicit when request . HasPrompt ( Prompts . None ) :
173- case ConsentTypes . Systematic when request . HasPrompt ( Prompts . None ) :
172+ case ConsentTypes . Explicit when request . HasPromptValue ( PromptValues . None ) :
173+ case ConsentTypes . Systematic when request . HasPromptValue ( PromptValues . None ) :
174174 return Forbid (
175175 authenticationSchemes : OpenIddictServerAspNetCoreDefaults . AuthenticationScheme ,
176176 properties : new AuthenticationProperties ( new Dictionary < string , string >
0 commit comments