How to change scope / permissions using Microsoft.Web.WebPages.OAuth

Is there a way to change the scope / resolution when using Microsoft.Web.WebPages.OAuth? The most logical place is to register the client using OAuthWebSecurity.RegisterClient. I thought adding an area to the extraData parameter might work, but I was not successful with this.

+6
source share
2 answers

Microsoft.Web.WebPages.OAuth does not disclose the scope for authorization with the client. I added that DotNetOpenAuth user clients have added my required scope.

+1
source

Extrarada is what you can convey about the provider and use it in the user interface layer. E.g. additional data may be an icon displayed when listing the provider that will be used for login. The following post shows how you can write your own provider and connect it to your site http://blogs.msdn.com/b/webdev/archive/2012/08/23/plugging-custom-oauth-openid-providers. aspx

+1
source

Source: https://habr.com/ru/post/921231/


All Articles