Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add User ID to webapp response #1315

Merged
merged 2 commits into from
Jan 20, 2021
Merged

Add User ID to webapp response #1315

merged 2 commits into from
Jan 20, 2021

Conversation

lucacome
Copy link
Member

Using the username header to show that the user is authenticated.

Copy link
Contributor

@pleshakov pleshakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lucacome

looks good!

Would it make sense to update the doc here https://github.com/nginxinc/kubernetes-ingress/blob/master/docs-web/configuration/policy-resource.md#oidc ? Something like below:

spec:
  oidc:
    clientID: nginx-plus
    clientSecret: oidc-secret
    authEndpoint: https://idp.example.com/openid-connect/auth
    tokenEndpoint: https://idp.example.com/openid-connect/token
    jwksURI: https://idp.example.com/openid-connect/certs

NGINX Plus will pass the ID of an authenticated user to the backend in the HTTP header username.

@Dean-Coakley Dean-Coakley merged commit a469c40 into master Jan 20, 2021
@Dean-Coakley Dean-Coakley deleted the improve-oidc-example branch January 20, 2021 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants