You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

OAuth Provider bundle

API

requestparamsresponsedescription
GET /oauth/providers
OAuthProvider arraylist of configured identity providers
GET /oauth/redirect

code={}&state={}

or

session_state={}

or

token={}

TokenResponsecalled by the 301 Response from the identity provider
POST /oauth/loginusername={}&password={}TokenResponse

Environment Vars

envdefault valuedescription
TOKEN_SECRETsecretkey to sign the token
TOKEN_ISSUERONAP SDNC
HOST_URLnull => autodetectedimportant for reverse proxy use case
ODLUX_REDIRECT_URI/odlux/index.html#/oauth?token=OAuth redirect will be responded
SUPPORT_ODLUSERStruelogin interface enabled for internal odl configured users


Dataflow example

for Login with external Identity Provider (KeyCloak)


User User GUI GUI SDNC SDNC OAUthProvider OAUthProvider 1GET /oauth/providers 2providers array 3Select OAuth provider 4/loginForm with params 5loginForm 6fill login form 7POST /login with credentials 8[301] to redirectURI 9GET /oauth/redirect with params 10POST /oauth2/token with params 11OAuthToken with roles 12create odl bearer token with with roles 13odl bearer token

  • No labels