-
Notifications
You must be signed in to change notification settings - Fork 0
fix: resolve nil pointer dereference when creating OAuth2 client with unknown provider config #68
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -121,6 +121,18 @@ resource "ory_oauth2_client" "cli_tool" { | |
| scope = "openid offline_access" | ||
| } | ||
|
|
||
| # Same-apply: Create project and OAuth2 client together | ||
| # Use resource-level credentials when the project doesn't exist yet | ||
| resource "ory_oauth2_client" "same_apply" { | ||
| project_slug = ory_project.main.slug | ||
| project_api_key = ory_project_api_key.main.value | ||
|
|
||
| client_name = "Created with Project" | ||
| grant_types = ["client_credentials"] | ||
| token_endpoint_auth_method = "client_secret_post" | ||
| scope = "api:read api:write" | ||
| } | ||
|
Comment on lines
+124
to
+134
|
||
|
|
||
| output "api_service_client_id" { | ||
| value = ory_oauth2_client.api_service.client_id | ||
| } | ||
|
|
||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| resource "ory_oauth2_client" "test" { | ||
| project_slug = "[[ .ProjectSlug ]]" | ||
| project_api_key = "[[ .ProjectAPIKey ]]" | ||
|
|
||
| client_name = "[[ .Name ]]" | ||
|
|
||
| grant_types = ["client_credentials"] | ||
| response_types = ["token"] | ||
| scope = "api:read" | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.