Sustainsys / Saml2

Saml2 Authentication services for ASP.NET
Other
952 stars 600 forks source link

Error trying to load metadata - Azure AD. #1222

Closed dazinator closed 4 years ago

dazinator commented 4 years ago

I created a simple sample asp.net core app, working against the sustainsys stub idp.

I am now attempting to get it working for azure ad, but I am hitting a problem configuring the "Metadata".

In Azure AD, it gives you what it calls a "App Federation Metadata Url"

In my application, I have tried setting the meta data url to this url, as well as downloading that metadata and pointing to the local metadata xml document, but both scenarios result in the following exception on app startup:

image

Am I missing something perhaps?

dazinator commented 4 years ago

Ok, this turned out to be an issue because I was not setting the correct entity id for azure ad.

For Azure AD, you need to set entity id, and sign in url:

image

This now leads me to a different error a the point of issuing a Challenge, but will raise seperate issue for that.