Skip to content

feature: authorize plugin to work as forward_authΒ #460

@greenpau

Description

@greenpau

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions