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

multiple scopes passing via allowed scopes #7976

Open
rakukrej opened this issue Nov 8, 2023 · 7 comments
Open

multiple scopes passing via allowed scopes #7976

rakukrej opened this issue Nov 8, 2023 · 7 comments
Assignees
Labels
bug Something isn't working MP P2 security

Comments

@rakukrej
Copy link

rakukrej commented Nov 8, 2023

We are passing 3 scopes to application via allowed scopes which are defined separately but helidon is unable to process them.
In logs, we are getting scope is not in allowed list though we have passed it separately in application.yaml file.
As a workaround when we passed 3 scopes with space it worked.
Example: allowedScopes: [ "a","b",] # doesn't work
Passed token with scope [a b]
Error : InvalidTokenException: Scope is not in the allow list. Scope verification failed

Workaround: allowedScopes: [ "a b","b a","a","b"] # works
Passed token from idcs with scope [a b]

@barchetta
Copy link
Member

Can you please state what version of Helidon you are using and if it is MP or SE.

@fssouza
Copy link

fssouza commented Nov 13, 2023

This is Helidon MP

@m0mus m0mus added bug Something isn't working logging P2 and removed logging labels Nov 13, 2023
@m0mus m0mus added the MP label Nov 13, 2023
@rakukrej
Copy link
Author

We are using Helidon MP passing scopes to application generated via IDCS.
We are passing token with 2 scopes to application.
In application.yaml file, we have specified allowed scopes in pattern "allowedScopes: [ "a","b","c"]"
When giving a hit to application through bearer token having 2 scopes with space separated as [a x]
We are getting error "InvalidTokenException: Scope is not in the allow list. Scope verification failed"

As a workaround, in application.yaml file when specified allowed scopes as "allowedScopes: [ "a","b","c","a x","x a"]"
It works.
Ideally if any of scope being present in bearer token should be passed which is not happening currently. Hence raised bug

@romain-grecourt
Copy link
Contributor

We are using Helidon MP

And what version of Helidon are you using ?
BTW, the template for the issue prompts you to specify both flavor and version...

@rakukrej
Copy link
Author

Helidon Version: 3.2.2
Helidon MP
JDK version: 17.0.3
OS: Mac OS
Docker version (if applicable): N/A

@m0mus m0mus added this to Backlog Aug 12, 2024
@m0mus m0mus moved this to High priority in Backlog Aug 12, 2024
@fssouza
Copy link

fssouza commented Oct 23, 2024

Hi @m0mus , in which releaser this is targeted to be delivered?

@m0mus
Copy link
Contributor

m0mus commented Oct 23, 2024

@fssouza I cannot tell you when it will be released yet. Now it waits in the queue. We'll try our best to address it sooner.

@m0mus m0mus moved this from High priority to Sprint Scope in Backlog Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working MP P2 security
Projects
Status: Sprint Scope
Development

No branches or pull requests

6 participants