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 scope validation for InternalAPIKeyAuthenticator #3486

Closed
wants to merge 2 commits into from

Conversation

rajithacharith
Copy link

Purpose

Validate scopes for internal api keys.
As mentioned in [Architecture] [Choreo] Admin configuration for configuring developer portal IdP, scope validation will be added to the API keys. To maintain the current behavior for console users (internal developers) following PR should be merged before this

Issues

@VirajSalaka
Copy link
Contributor

There are few checkstyle failures in the PR check.

@@ -254,6 +261,42 @@ public AuthenticationContext authenticate(RequestContext requestContext) throws
APISecurityConstants.API_AUTH_GENERAL_ERROR, APISecurityConstants.API_AUTH_GENERAL_ERROR_MESSAGE);
}

private void validateScopes(RequestContext requestContext, JWTClaimsSet payload, JWTTokenPayloadInfo jwtTokenPayloadInfo)
Copy link
Contributor

Choose a reason for hiding this comment

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

let's discuss and decide if we need to set these scopes in the backend jwt token as well

@rajithacharith rajithacharith force-pushed the choreo branch 2 times, most recently from afe91b7 to a2a5444 Compare January 31, 2024 05:09
@rajithacharith
Copy link
Author

Scopes needs to be added to the backend jwt token. Keeping this PR closed as the issue is hold till the other blockers fixed.

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.

2 participants