Created on 12 May 2022
icon_unfollowing
Login to follow
keycloak-sso-oml

KeyCloak SSO.oml

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded on 12 May 2022 by 
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

Release notes (1.0.0)
Reviews (0)
Category
Integrations, Security & authentication
Support options
This asset is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from  who created this asset.
Dependencies
KeyCloak SSO.oml has no dependencies.
Application Objects
KeyCloak SSO.oml has 14 AOs.
Team
Compatible with
Version 11
11.14.0 or higher
Database:
All
Asset consumers
No consumers yet.
Weekly downloads