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 method does not exist for merging #1289

Open
beesanne opened this issue Apr 19, 2024 · 1 comment
Open

Authentication method does not exist for merging #1289

beesanne opened this issue Apr 19, 2024 · 1 comment

Comments

@beesanne
Copy link

beesanne commented Apr 19, 2024

I am trying to merge two authentication methods -- Basic and Windows IIS Auth but when i try I get the error:
Authentication method does not exist for merging: authForGet.
You cannot call a method on a null-valued expression

I tried merging with a different Windows Auth I have called 'auth' but then I get the following error:
Authentication method does not exist for merging: BasicAuth.
You cannot call a method on a null-valued expression

Is merging Windows Auth and Basic Auth not supported?

Add-PodeAuthIIS -Name 'authForGet' -Sessionless -ScriptBlock { param($creds) return @{ User = $creds } }

New-PodeAuthScheme -Basic | Add-PodeAuth -Name 'BasicAuth' -Sessionless -ScriptBlock { param($creds) return @{ User = $creds } }

Merge-PodeAuth -Name MergedAuth -Authentication 'authForGet', 'BasicAuth' -Valid One

@mdaneri
Copy link
Contributor

mdaneri commented Jul 1, 2024

I'm not able to reproduce your issue with Pode v2.10.0 and v2.10.1
Do you still have the issue ?

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