Difference between revisions of "Authorization Code flow"

From wikieduonline
Jump to navigation Jump to search
(Created page with " * PKCE")
 
Tags: Mobile web edit, Mobile edit
 
(4 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
* [[PKCE]]
 
* [[PKCE]]
 +
 +
 +
== [[Gemini Terraform code: Okta Keycloak integration]] ==
 +
{{Akta app oauth org}}
 +
 +
== See also ==
 +
* {{OAuth}}
 +
 +
[[Category:OAuth]]

Latest revision as of 08:44, 27 May 2026



Gemini Terraform code: Okta Keycloak integration[edit]

resource "okta_app_oauth" "keycloak_idp" {
 label       = "Keycloak Identity Broker"
 type        = "web"  # This tells Okta it's a standard web app (OIDC)
 status      = "ACTIVE"

 # The exact endpoint where Okta sends the login token back to Keycloak
 redirect_uris = [
   "https://keycloak.yourexample.com/realms/your-realm-name/broker/okta-oidc/endpoint"
 ]

 # Keycloak handles the Authorization Code flow natively
 grant_types   = ["authorization_code"]
 response_types = ["code"]

 token_endpoint_auth_method = "client_secret_post"
 consent_method             = "TRUSTED"

 # CRITICAL FOR BASIC LICENSE: This configures the Org Auth Server to 
 # include the user's groups inside the ID Token so Keycloak can read it.
 groups_claim {
   name        = "groups"
   type        = "FILTER"
   filter_type = "REGEX"
   value       = ".*"  # Matches and passes all groups the user belongs to
 }
}

See also[edit]

Advertising: