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

authentication question #1005

Closed
phand00 opened this issue Aug 18, 2022 · 2 comments
Closed

authentication question #1005

phand00 opened this issue Aug 18, 2022 · 2 comments

Comments

@phand00
Copy link

phand00 commented Aug 18, 2022

Hi,

I red the Question: authentication question #931 and it's really helpfull
I tried it and it works as you said, both auth mechanism are applied.

But what I want to achieve is a bit different.
I want all /api* routes to get authenticate with Bearer
But for one subroute (/api/route1/item1 for example), I would like to add basic auth as an alternative, but do not want both auth mechanism to be applied/required. Is it doable with Pode?

Thanks

@Badgerati
Copy link
Owner

Hi @phand00,

So basically either auth X or auth Y, and if one succeeds invoke the route? That sounds like #588 😄

At the moment it's not possible to have 2 authentication methods in a or scenario - unless you write a custom auth scheme for it. The idea behind #588 is to make this scenario possible.

@phand00
Copy link
Author

phand00 commented Aug 19, 2022

ok thanks.

@Badgerati Badgerati closed this as not planned Won't fix, can't repro, duplicate, stale Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants