Skip to content

Commit

Permalink
[feature] Login / logout capability on the home page
Browse files Browse the repository at this point in the history
- Create a record for a new OpenID-Connect `clientId` in the Keycloak configuration-as-code
- Use it from an `<OIDCContext>`, which itself contains a `<LoginButton>`
  • Loading branch information
Dominique Quatravaux authored and SaphireVert committed Apr 13, 2023
1 parent a845aaf commit 3967bdc
Showing 1 changed file with 28 additions and 13 deletions.
41 changes: 28 additions & 13 deletions keycloak/import/rails-realm.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,32 @@
"notBefore" : 0,
"groups" : [ ]
} ],
"clients" : [ {
"clientId" : "graphiql/LoginButton",
"baseUrl" : "http://localhost:3000/",
"enabled" : true,
"redirectUris" : [ "*" ],
"webOrigins" : [ "*" ],
"standardFlowEnabled" : true,
"implicitFlowEnabled" : false,
"directAccessGrantsEnabled" : true,
"publicClient" : true,
"frontchannelLogout" : true,
"protocol" : "openid-connect"
} ]
"clients" : [
{
"clientId" : "graphiql/LoginButton",
"baseUrl" : "http://localhost:3000/",
"enabled" : true,
"redirectUris" : [ "*" ],
"webOrigins" : [ "*" ],
"standardFlowEnabled" : true,
"implicitFlowEnabled" : false,
"directAccessGrantsEnabled" : true,
"publicClient" : true,
"frontchannelLogout" : true,
"protocol" : "openid-connect"
},
{
"clientId" : "hello_rails",
"baseUrl" : "http://localhost:3000/",
"enabled" : true,
"redirectUris" : [ "*" ],
"webOrigins" : [ "*" ],
"standardFlowEnabled" : true,
"implicitFlowEnabled" : false,
"directAccessGrantsEnabled" : true,
"publicClient" : true,
"frontchannelLogout" : true,
"protocol" : "openid-connect"
}
]
}

0 comments on commit 3967bdc

Please sign in to comment.