Oauth Middleware component.
Name | Type | Description |
---|---|---|
auth_endpoint |
string | |
logout_endpoint |
string | |
redirect_uri |
string | |
session_cookie_name |
string | |
client_id |
string | |
scope |
string | |
email_claim |
string | |
groups_claim |
string? |
Name | Type | Description |
---|---|---|
request |
http::HttpRequest |
Name | Type | Description |
---|---|---|
output |
http::RequestMiddlewareResponse |
Given the following configuration:
Component-wide configuration as config.json
:
{
"auth_endpoint": "XXX",
"logout_endpoint": "XXX",
"redirect_uri": "XXX",
"session_cookie_name": "XXX",
"client_id": "XXX",
"scope": "XXX",
"email_claim": "XXX",
"groups_claim": "XXX"
}
$ wick invoke <missing>/oauth_engine:0.1.0 auth [email protected] -- --request="XXX"
Or with inline configuration:
$ wick invoke <missing>/oauth_engine:0.1.0 auth \
--with='{ "auth_endpoint":"XXX","logout_endpoint":"XXX","redirect_uri":"XXX","session_cookie_name":"XXX","client_id":"XXX","scope":"XXX","email_claim":"XXX","groups_claim":"XXX" }' \
-- --request="XXX"
Name | Type | Description |
---|---|---|
request |
http::HttpRequest |
Name | Type | Description |
---|---|---|
output |
http::RequestMiddlewareResponse |
Given the following configuration:
Component-wide configuration as config.json
:
{
"auth_endpoint": "XXX",
"logout_endpoint": "XXX",
"redirect_uri": "XXX",
"session_cookie_name": "XXX",
"client_id": "XXX",
"scope": "XXX",
"email_claim": "XXX",
"groups_claim": "XXX"
}
$ wick invoke <missing>/oauth_engine:0.1.0 oidc [email protected] -- --request="XXX"
Or with inline configuration:
$ wick invoke <missing>/oauth_engine:0.1.0 oidc \
--with='{ "auth_endpoint":"XXX","logout_endpoint":"XXX","redirect_uri":"XXX","session_cookie_name":"XXX","client_id":"XXX","scope":"XXX","email_claim":"XXX","groups_claim":"XXX" }' \
-- --request="XXX"
Name | Type | Description |
---|---|---|
request |
http::HttpRequest |
Name | Type | Description |
---|---|---|
response |
http::HttpResponse | |
body |
UserInfo |
Given the following configuration:
Component-wide configuration as config.json
:
{
"auth_endpoint": "XXX",
"logout_endpoint": "XXX",
"redirect_uri": "XXX",
"session_cookie_name": "XXX",
"client_id": "XXX",
"scope": "XXX",
"email_claim": "XXX",
"groups_claim": "XXX"
}
$ wick invoke <missing>/oauth_engine:0.1.0 get_user [email protected] -- --request="XXX"
Or with inline configuration:
$ wick invoke <missing>/oauth_engine:0.1.0 get_user \
--with='{ "auth_endpoint":"XXX","logout_endpoint":"XXX","redirect_uri":"XXX","session_cookie_name":"XXX","client_id":"XXX","scope":"XXX","email_claim":"XXX","groups_claim":"XXX" }' \
-- --request="XXX"