How to change scope/permissions with Microsoft.Web.WebPages.OAuth
Asked Answered
J

2

6

Is there a way to change the scope/permission when using Microsoft.Web.WebPages.OAuth? The most logical place is when registering the client with OAuthWebSecurity.RegisterClient. I thought that the adding scope to the extraData parameter would possibly work, but I didn't have success with that.

Juan answered 24/7, 2012 at 17:31 Comment(0)
J
1

Microsoft.Web.WebPages.OAuth does not expose the scope when authorizing with a client. I ended up adding custom DotNetOpenAuth clients to include my necessary scope.

Juan answered 25/7, 2012 at 15:11 Comment(0)
H
1

The extradata is something you can pass about the provider and use it in tehe UI layer. For eg. extra data could be the icon to display when listing the provider to use for login. Following post shows how you can write your own provider and plug it into your site http://blogs.msdn.com/b/webdev/archive/2012/08/23/plugging-custom-oauth-openid-providers.aspx

Honk answered 23/8, 2012 at 22:26 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.