简体   繁体   中英

OAuth2 AuthorizationServer and Rest Service

I'm using dotnetopenauth and asp.net mvc3 to build a rest service client. I'm using the lastest dotnetopenauth beta 4. Is there an example showing how to build a mvc 3 resource server?

I have a client calling Client.RequestUserAuthorization(new[] {""}) which sends off the authorization request. When the authorization callback fires, I call the following method Client.ProcessUserAuthorization(). That method raises this error "The remote certificate is invalid according to the validation procedure." I'm not sure what is causing this issue.

Try browsing to the authorization server's access token endpoint using Internet Explorer on the same computer. You'll likely see a warning about an invalid certificate. That's what the error you're seeing is coming from.

To solve it, you need to either obtain a signed certificate from a root authority, or you need to add the certificate to your Trusted Certificates store on your computer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM