Skip to content

Commit 547cdab

Browse files
committed
fix: OidcBearerAuth
1 parent 71a4503 commit 547cdab

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

openeo/rest/auth/auth.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ def __init__(self, access_token: str, jwt_conformance: bool = False):
5050
class OidcBearerAuth(BearerAuth):
5151
"""Bearer token for OIDC Auth (openEO API 1.0.0 style)"""
5252

53-
def __init__(self, provider_id: str, access_token: str, jwt_conformance: bool = False):
54-
if jwt_conformance:
55-
bearer="{t}"
56-
else:
57-
bearer="oidc/{p}/{t}".format(p=provider_id, t=access_token)
58-
super().__init__(bearer=bearer)
53+
def __init__(self, access_token: str, jwt_conformance: bool = False):
54+
if not jwt_conformance:
55+
access_token = "basic//{t}".format(t=access_token)
56+
super().__init__(bearer=access_token)

0 commit comments

Comments
 (0)