fix device code support check
This commit is contained in:
parent
3a16504990
commit
315ec4cedf
1 changed files with 1 additions and 1 deletions
|
@ -291,7 +291,7 @@ func (s *LegacyServer) ClientCredentialsExchange(ctx context.Context, r *ClientR
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *LegacyServer) DeviceToken(ctx context.Context, r *ClientRequest[oidc.DeviceAccessTokenRequest]) (*Response, error) {
|
func (s *LegacyServer) DeviceToken(ctx context.Context, r *ClientRequest[oidc.DeviceAccessTokenRequest]) (*Response, error) {
|
||||||
if !s.provider.GrantTypeClientCredentialsSupported() {
|
if !s.provider.GrantTypeDeviceCodeSupported() {
|
||||||
return nil, unimplementedGrantError(oidc.GrantTypeDeviceCode)
|
return nil, unimplementedGrantError(oidc.GrantTypeDeviceCode)
|
||||||
}
|
}
|
||||||
// use a limited context timeout shorter as the default
|
// use a limited context timeout shorter as the default
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue