Skip to content

Commit 10423e2

Browse files
[13.x] Add static setter for authorizationServerResponseType (#1867)
* Add static setter for authorizationServerResponseType * Update Passport.php --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent 55be263 commit 10423e2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Passport.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,14 @@ public static function authCode(): AuthCode
453453
return new static::$authCodeModel;
454454
}
455455

456+
/**
457+
* Set the default ResponseType that should be used by the authorization server.
458+
*/
459+
public static function useAuthorizationServerResponseType(?ResponseTypeInterface $authorizationServerResponseType): void
460+
{
461+
static::$authorizationServerResponseType = $authorizationServerResponseType;
462+
}
463+
456464
/**
457465
* Set the device code model class name.
458466
*

0 commit comments

Comments
 (0)