Skip to content

Is it possible for APISIX’s OIDC plugin to manage groups? if not, can I do it oauth2-proxy to secure my application? #12106

Answered by sopacifics
sopacifics asked this question in Q&A
Discussion options

You must be logged in to vote

We resolved the issue using APISIX forward-auth plugin and serverless-post-function plugin intercepts authentication failures and redirects users to the OAuth login page.

Authentication Flow

  1. Client sends request to an API endpoint protected by this configuration
  2. APISIX forwards authentication data to the OAuth2 proxy service
    If authentication is valid:
  • OAuth2 proxy returns a successful response
  • APISIX forwards the original request to the upstream service
  • Authentication details are passed via headers to upstream services
  1. If authentication fails (401 or 403):
  • The serverless-post-function intercepts the error
  • A redirect to the OAuth2 login page is generated
  • The client browser is redir…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@sopacifics
Comment options

@Baoyuantop
Comment options

@sopacifics
Comment options

@sopacifics
Comment options

Answer selected by sopacifics
@dosubot
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants