mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-11 08:43:31 +00:00
Fixes Okta default scope (#6847)
This commit is contained in:
parent
8d56cb99b7
commit
3d125d9372
@ -224,10 +224,11 @@ class OktaAuthenticationProvider(AuthenticationProvider):
|
||||
)
|
||||
parameters = {
|
||||
"grant_type": "client_credentials",
|
||||
"scope": " ".join(config["client"]["scopes"]),
|
||||
"client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
|
||||
"client_assertion": jwt_token,
|
||||
}
|
||||
if config["client"].get("scopes"):
|
||||
parameters["scope"] = " ".join(config["client"]["scopes"])
|
||||
encoded_parameters = urlencode(parameters, quote_via=quote)
|
||||
url = f"{self.security_config.orgURL}?" + encoded_parameters
|
||||
token_request_object = await request_exec.create_request(
|
||||
|
@ -245,6 +245,5 @@ workflowConfig:
|
||||
orgURL: "{ISSUER_URL}/v1/token"
|
||||
privateKey: "{public/private keypair}"
|
||||
email: "{email}"
|
||||
scopes:
|
||||
- token
|
||||
scopes: []
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user