Currently, if you have a single OAuth identity provider in their config, you need to configure authentication portal and then redirect to the provider, e.g. /auth/oauth2/google/authorization-code-callback.
This feature would allow using authorize plugin without the provider.
{
security {
oauth identity provider linkedin {
realm linkedin
driver linkedin
client_id {env.LINKEDIN_APP_CLIENT_ID}
client_secret {env.LINKEDIN_APP_CLIENT_SECRET}
}
authorization policy linkedin_oauth_policy {
use oauth identity provider linkedin
allow roles authp/admin authp/user
}
}
}
{
route {
authorize with linkedin_oauth_policy
reverse_proxy http://127.0.0.1:5001
}
}
See also #375
Currently, if you have a single OAuth identity provider in their config, you need to configure
authentication portaland then redirect to the provider, e.g./auth/oauth2/google/authorization-code-callback.This feature would allow using
authorizeplugin without the provider.{ security { oauth identity provider linkedin { realm linkedin driver linkedin client_id {env.LINKEDIN_APP_CLIENT_ID} client_secret {env.LINKEDIN_APP_CLIENT_SECRET} } authorization policy linkedin_oauth_policy { use oauth identity provider linkedin allow roles authp/admin authp/user } } } { route { authorize with linkedin_oauth_policy reverse_proxy http://127.0.0.1:5001 } }See also #375