Azure WEB APP Access Google Drive API Always Access- Denied
have created asp.net webapi project,then added 1 apicontroller created 1 method google drive files .i refer link https://developers.google.com/api-client-library/dotnet/guide/aaa_oauth#web-applications-aspnet-mvc. when create asp.net mvc application it working fine when create new project asp.net webapi not working the reason :
var result = await new authorizationcodemvcapp(this, new appflowmetadata()). authorizeasync(cancellationtoken.none);
in above line authorizationcodemvcapp takes argument = current controller , inherited from system.web.mvc controller,but in web api project it apicontroller system.web.http
how can work apicontroller? need change way authatication?
note:in google devdeloper account have select o-auth client id type web-application
Microsoft Azure > Azure App Service - API Apps
Comments
Post a Comment