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

PXP-10229 Client auth mapping #153

Merged
merged 6 commits into from
Oct 17, 2022
Merged

PXP-10229 Client auth mapping #153

merged 6 commits into from
Oct 17, 2022

Conversation

paulineribeyre
Copy link
Contributor

@paulineribeyre paulineribeyre commented Oct 6, 2022

Jira Ticket: PXP-10229

New Features

  • The POST /auth/mapping endpoint now supports a clientID parameter to get the auth mapping for a client. It accepts either a username parameter or a clientID parameter (not both).

Breaking Changes

  • The GET /auth/mapping endpoint does not accept username as a query parameter anymore. It only supports parsing the username from the provided JWT. To specify a username, use the POST /auth/mapping endpoint.

Bug Fixes

Improvements

Dependency updates

Deployment changes

@paulineribeyre paulineribeyre changed the title Client auth mapping PXP-10229 Client auth mapping Oct 7, 2022
username = usernameQS[0]
} else if authHeader := r.Header.Get("Authorization"); authHeader != "" {
// Fall back to JWT for username. Added for Arborist UI integration...
if authHeader := r.Header.Get("Authorization"); authHeader != "" {
server.logger.Info("No username in query args; falling back to jwt...")
Copy link
Contributor

Choose a reason for hiding this comment

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

we should probably remove this log or update the language

Copy link
Contributor

Choose a reason for hiding this comment

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

see other logs below too, ensure wording doesn't imply "falling back" to jwt

Copy link
Contributor

@Avantol13 Avantol13 left a comment

Choose a reason for hiding this comment

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

see minor comments

@paulineribeyre paulineribeyre merged commit f391bff into master Oct 17, 2022
@paulineribeyre paulineribeyre deleted the feat/client-mapping branch October 17, 2022 19:19
This was referenced Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants