Fixes Okta default scope (#6847)

This commit is contained in:
Ayush Shah 2022-08-23 13:04:12 +05:30 committed by GitHub
parent 8d56cb99b7
commit 3d125d9372
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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(

View File

@ -245,6 +245,5 @@ workflowConfig:
orgURL: "{ISSUER_URL}/v1/token"
privateKey: "{public/private keypair}"
email: "{email}"
scopes:
- token
scopes: []
```