Skip to content

Commit e48bcdc

Browse files
committed
added factory method for oidc
1 parent 1a38f38 commit e48bcdc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Authentication/Authenticate.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@ public static function kerberos(string $token): KerberosAuth
4040
return new KerberosAuth($token);
4141
}
4242

43+
/**
44+
* Authenticate using a kerberos token.
45+
*
46+
* @pure
47+
*/
48+
public static function oidc(string $token): OpenIDConnectAuth
49+
{
50+
return new OpenIDConnectAuth($token);
51+
}
52+
4353
/**
4454
* Don't authenticate at all.
4555
*

0 commit comments

Comments
 (0)