providers/oauth2: fix creation of new refresh token
This commit is contained in:
parent
f99eaa85ac
commit
cbcdaaf532
|
@ -218,10 +218,10 @@ class TokenView(View):
|
||||||
if unauthorized_scopes:
|
if unauthorized_scopes:
|
||||||
raise TokenError("invalid_scope")
|
raise TokenError("invalid_scope")
|
||||||
|
|
||||||
refresh_token = self.params.refresh_token.provider.create_token(
|
provider: OAuth2Provider = self.params.refresh_token.provider
|
||||||
user=self.params.refresh_token.user,
|
|
||||||
provider=self.params.refresh_token.provider,
|
refresh_token: RefreshToken = provider.create_refresh_token(
|
||||||
scope=self.params.scope,
|
user=self.params.refresh_token.user, scope=self.params.scope,
|
||||||
)
|
)
|
||||||
|
|
||||||
# If the Token has an id_token it's an Authentication request.
|
# If the Token has an id_token it's an Authentication request.
|
||||||
|
|
Reference in New Issue