keycloak-sso-oml
Web icon

KeyCloak SSO.oml

Stable version 1.0.0 (Compatible with OutSystems 11)
Published on 12 May (7 days ago) by 
0.0
 (0 ratings)
keycloak-sso-oml

KeyCloak SSO.oml

Details
Keycloak is an open source software product to allow single sign-on with Identity and Access Management aimed at modern applications and services.
Read more

Keycloak is an open source software product to allow single sign-on with Identity and Access Management aimed at modern applications and services. 


OpenID Connect and OAuth 2.0 Connector to popular SaaS platform Keycloak (Open source)


Read less

Keycloak SSO Connector vs IdP

The IdP component in the Forge is great!  You can use both of these components to authenticate to Keycloak, however they differ in protocol - IdP uses SAML 2.0, where as this component uses OpenID Connect and OAuth 2.0.  With this component, you can use the Access Token provided by Keycloak to invoke OAuth2.0 protected services.

OutSystems

Re-usable component to enable authentication via Keycloak.  To use:

Update the Security Exception sequence in your OnException and redirect to keycloak SSO componet.


Save your keycloak configuration in outsystems keycloak SSO component  KeyCloakConfig table. 

  1. Pass the component your Keycloak domain, client id, client secret, and the page the user is requesting (e.g. with GetBookmarkableURL())
  2. Optionally, add any additional scopes your application may need, or specify any connections to external authentication systems, e.g. GitHub
  3. Redirect the user to the result of GetRedirectURI


Important notes- 

Keycloak - Authorization - url to get the code- 

HTTP/1.1 302 Found
  Location: https://server.example.com/authorize?
    response_type=code
    &scope=openid%20profile%20email
    &client_id=s6BhdRkqt3
    &state=af0ifjsldkj
    &redirect_uri=https%3A%2F%2Fclient.example.org%2Fcb

Keycloak Access Token- 

POST /token HTTP/1.1
  Host: server.example.com
  Content-Type: application/x-www-form-urlencoded
  Authorization: Basic czZCaGRSa3F0MzpnWDFmQmF0M2JW

  grant_type=authorization_code&code=SplxlOBeZQQYbYS6WxSbIA
    &redirect_uri=https%3A%2F%2Fclient.example.org%2Fcb

Important URL-

https://www.keycloak.org/docs/latest/securing_apps/index.html#endpoints

https://openid.net/specs/openid-connect-core-1_0.html#AuthorizationEndpoint

What’s new (1.0.0)
Reviews (0)
Silk UI Framework Simulation Device
Resize the window to preview the page in target devices.
Open the settings to change the simulation device options.