Skip to content
This repository was archived by the owner on Jun 23, 2023. It is now read-only.

Commit afbf9c3

Browse files
authored
Update grant.py
Fixed a merge mistake
1 parent 043e63d commit afbf9c3

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/oidcop/session/grant.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,15 +270,18 @@ def mint_token(
270270
class_args = kwargs
271271
handler_args = {}
272272

273-
if token_class:
273+
if token_class == "access_token" and token_type:
274+
class_args["token_type"] = token_type
275+
276+
if _class:
274277
if scope is None:
275278
if based_on:
276279
scope = self.find_scope(based_on)
277280
else:
278281
scope = self.scope
279282

280-
item = token_class(
281-
type=token_type,
283+
item = _class(
284+
token_class=token_class,
282285
based_on=_base_on_ref,
283286
usage_rules=usage_rules,
284287
scope=scope,

0 commit comments

Comments
 (0)