This repository has been archived by the owner on Jul 31, 2023. It is now read-only.
forked from nokia/kong-oidc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request nokia#12 from skylineos/story/STRY0038018
Story/stry0038018
- Loading branch information
Showing
11 changed files
with
318 additions
and
90 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
title Kong OIDC Plugin - "pass" functionality | ||
|
||
participant User | ||
participant OIDC Provider | ||
participant Kong | ||
participant Upstream API | ||
|
||
Note over User,Upstream API: When user isn't authenticated | ||
User->Kong: GET /<api> | ||
Kong->Upstream API: GET /<api> without x-userinfo | ||
Upstream API->User: HTTP response | ||
|
||
Note over User,Upstream API: When user isn't authenticated (force_authentication_path) | ||
User->Kong: GET /force_authentication_path | ||
Kong->User: Redirect to OIDC Provider for Authorization Grant | ||
User->+OIDC Provider: Login | ||
OIDC Provider->-User: Redirect to Kong with Authorization Grant | ||
note right of User: See "How does Kong OIDC work?" diagram for rest of sequence. | ||
|
||
Note over User,Upstream API: When user is authenticated | ||
User->Kong: GET /<api> | ||
Kong->Upstream API: GET /<api> with x-userinfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
-------------------------------------------------- | ||
-- Declare Contants -- | ||
-------------------------------------------------- | ||
local constants = { | ||
|
||
-- Request Headers | ||
REQUEST_HEADERS = { | ||
X_ACCESS_TOKEN = "X-Access-Token", | ||
X_ID_TOKEN = "X-ID-Token", | ||
X_USERINFO = "X-Userinfo", | ||
}, | ||
|
||
-- unauth_action values | ||
UNAUTH_ACTION = { | ||
PASS = "pass", | ||
DENY = "deny", | ||
NIL = nil, | ||
} | ||
} | ||
|
||
|
||
return constants |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.