providers/oauth2: fix creation of new refresh token

This commit is contained in:
Jens Langhammer 2020-09-21 11:48:23 +02:00
parent f99eaa85ac
commit cbcdaaf532
1 changed files with 4 additions and 4 deletions

View File

@ -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.