Skip to content

Instantly share code, notes, and snippets.

@panduroab
Last active June 3, 2020 15:53
Show Gist options
  • Select an option

  • Save panduroab/22af9ec926c26ce79a6d0507604a41e0 to your computer and use it in GitHub Desktop.

Select an option

Save panduroab/22af9ec926c26ce79a6d0507604a41e0 to your computer and use it in GitHub Desktop.
Keycloak OpenId-Connect Auth endpoint
//Configure the Keycloak client app as: Access Type public and Implicit Flow Enabled as true
let authParams = {
client_id: 'electron',
redirect_uri: 'http://localhost',
response_type: 'token',
scope: 'openid',
nonce: 'random_string' //Random string chain
}
let url = `${authConfig["auth-server-url"]}realms/${authConfig['realm']}/protocol/openid-connect/auth?${querystring.encode(authParams)}`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment