Change the authenticationmethod claim to be an absolute uri

YSOD:
Change the authenticationmethod claim to be an absolute uri

This one was just plain silliness on my part. I was overriding the login/authentication mechanism for Identity Server. One of the arguments was the Authentication.Method.

Early in my experiments, I set it to an invalid setting and it didn’t seem to have any results/effect. However, when I was wrapping-up my work, I started getting this error (above). The error didn’t happen ANYWHERE near my whacky code change. So it took a while to back-track and find my mistake.

Solution: When calling SignIn() or SetSessionToken() or CreatePrincipal(), make sure that you specify an AuthenticationMethod that is part of the enum System.IdentityModel.AuthenticationMethods.

Advertisements

About Tim Golisch

I'm a geek. I do geeky things.
This entry was posted in Errors, Lessons Learned and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s