-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cant create or update a okta_app_oauth with token_endpoint_auth_method of "none" #580
Comments
Hi @mcrobbj! Thanks for submitting this issue! It's clearly a bug from the Okta API itself. According to the official documentation, |
hello @mcrobbj creating a web app which has a client_secret |
If it helps it used to work, or certainly not error.
I have another resource that I created a few months ago with those settings.
…On Fri, 13 Aug 2021 at 16:35, bogdanprodan-okta ***@***.***> wrote:
Hi @mcrobbj <https://github.com/mcrobbj>! Thanks for submitting this
issue! It's clearly a bug from the Okta API itself. According to the official
documentation
<https://developer.okta.com/docs/reference/api/apps/#credentials>, none
is a valid value, so I'll try to request assistance from the team
responsible for this functionality.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#580 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACQL2EHO32GLCJZKZNWV3Z3T4U3VDANCNFSM5CDJPR2Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
@mcrobbj is this something you can work around? I'll pass this issue along and see what other information I can gather. |
I need to check what happens when you create from the portal - it seems
from terraform and possibly the api if you dont specify anything the
default to client_secret_basic
John
…On Fri, 13 Aug 2021 at 19:05, Mike Mondragon ***@***.***> wrote:
@mcrobbj <https://github.com/mcrobbj> is this something you work around?
I'll pass this issue along and see what other information I can gather.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#580 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACQL2EFNHWEIB5XGXJWGZHTT4VNIFANCNFSM5CDJPR2Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
@mcrobbj I discussed this with the feature team that does federation and showed them your feedback. This was their response "we have had this check for a long time now, this is not something that changed recently. If the client's grantTypes contains authorization_code, we allow only browser and native clients to create the app with token_endpoint_auth_method=none. We do not have this restriction if the grantType is implicit." Let me know if there is anything else @bogdanprodan-okta or myself can do for you. |
That's not the case. The Gant type is Auth code and doesn't allow none. If
I comment the token_endpoint_auth_method out it defaults to basic. I have
talked to support and confirmed this.
…On Fri, 13 Aug 2021, 22:16 Mike Mondragon, ***@***.***> wrote:
@mcrobbj <https://github.com/mcrobbj> I discussed this with the feature
team that does federation and showed them your feedback. This was their
response "we have had this check for a long time now, this is not something
that changed recently. If the client's grantTypes contains
authorization_code, we allow only browser and native clients to create the
app with token_endpoint_auth_method=none. We do not have this restriction
if the grantType is implicit."
Let me know if there is anything else @bogdanprodan-okta
<https://github.com/bogdanprodan-okta> or myself can do for you.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#580 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACQL2ECOX33B7T4X7B4S4X3T4WDRRANCNFSM5CDJPR2Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
Here is the JSON payload that is used to create this app:
And it's clear that |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days |
so... Is this just left broken or something? Literally impossible to create an SPA App integration with this if I can't select "none" when setting an auth code flow. The official documentation explicitly says to set this to none.
|
Nvm, looks like you just need to make sure the type is "browser" if you're going to make an SPA. It would help if the values of the "type" variable were made a bit more distinct in the documentation ("browser" vs "web"... really???) |
I’ll update the docs, no problem! |
https://developer.okta.com/docs/reference/api/apps/#add-oauth-2-0-client-application
|
Community Note
Terraform Version
Terraform 1.0.3
okta prrovider: 3.1..1.
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
It should create the app with a token endpoint auth method of none
Actual Behavior
failed to update OAuth application: The API returned an error: Api validation failed: token_endpoint_auth_method. Causes: errorSummary: token_endpoint_auth_method: 'token_endpoint_auth_method' is invalid. Valid values: [client_secret_basic, client_secret_post, client_secret_jwt, private_key_jwt]
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: