-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
Set-PodeOAGlobalAuth failure on launch #1406
Comments
I’m not able to reproduce the issue can you please give a sample? |
I've been doing some work to narrow down the problem: In my case it appears to show up when an auth scheme is applied via auth middleware. Troubleshooting Steps:
Structure:My scheme is added via
Example scheme as tested: file:
|
Let me try it |
I'm able to reproduce it. @{
Web = @{
OpenApi = @{
}
}
} |
Added a new sample for the `Use-PodeAuth` function
I can confirm that the issue is fixed for me after applying the above workaround. |
Describe the Bug
After upgrading from 2.10.1 to 2.11.0, Pode fails to launch and outputs the following error to console:
reverting back to 2.10.1 corrects the problem.
Steps To Reproduce
Update from 2.10.1 to 2.11.0
Run Pode
View console
Expected Behavior
Expecting Pode to launch without error
Platform
Additional Context
I am not making use of the OpenAPI feature and have not enabled it.
I have defined 2 auth schemes, both of type: API Key. Only one of which is being applied via middleware.
The text was updated successfully, but these errors were encountered: