IdentityModel / AuthorizationServer

Sample implementation of an OAuth2 Authorization Server
Other
281 stars 136 forks source link

Local login form #212

Closed prasanna981 closed 10 years ago

prasanna981 commented 10 years ago

We want to get the OAuth2 running without a full Idp, and just use our own forms authentication mechanism for the claims. you mentioned you can just use a local login form in the authz server in the article in wiki.

Do you have any samples regarding this or further steps?

leastprivilege commented 10 years ago

No I don't have a sample - but I would switch to standard forms auth - add a login page and set a cookie using the SAM. From that point on it should work as normal.

prasanna981 commented 10 years ago

Thanks. I am assuming you refereeing to the code similar to here http://leastprivilege.com/2014/01/11/combining-thinktecture-authorizationserver-with-windows-integrated-authentication/

prasanna981 commented 10 years ago

Can we remove WSFederationAuthenticationModule and identityModel.services.config ?

leastprivilege commented 10 years ago

yes

prasanna981 commented 10 years ago

I am getting the following errror after removing the WSFederationAuthenticationModule and identityModel.services.config, your help much appreciated.

error

leastprivilege commented 10 years ago

Did you make progress?

prasanna981 commented 10 years ago

Yes, Thanks. it was the Application_PostAuthenticateRequest event bindings was causing the above issue. Managed to get forms authentication working with the flows sample. Trying to get the claims based ( ResourceActionAuthorize ) working now.

leastprivilege commented 10 years ago

Cool