Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

requestparamsresponsedescription
GET /oauth/providers
OAuthProvider arraylist of configured identity providers
GET /oauth/redirect
TokenResponse
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)

PlantUML Macro
@startuml
participant User as user order 1
participant GUI as gui order 2
participant SDNC as sdnc order 3
participant OAUthProvider as oauth order 4

    gui -> sdnc: GET /oauth/providers 
    sdnc -> gui: providers array
    user -> gui: Select OAuth provider
    gui -> oauth: /loginForm with params
    oauth -> gui: loginForm
    user -> gui: fill login form
    gui -> oauth: POST /login with credentials
    oauth -> gui: [301] to redirectURI
    gui -> sdnc: GET /oauth/redirect with params
    sdnc -> oauth:POST /oauth2/token with params
    oauth -> sdnc: OAuthToken with roles
    sdnc -> sdnc: create odl bearer token with with roles
    sdnc -> gui: odl bearer token
    
    
    
@enduml

...