Pode icon indicating copy to clipboard operation
Pode copied to clipboard

Authentication method does not exist for merging

Open beesanne opened this issue 10 months ago • 1 comments

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

beesanne avatar Apr 19 '24 18:04 beesanne

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

mdaneri avatar Jul 01 '24 20:07 mdaneri