Skip to content

Getting InvalidScope error after completing the Authentication  #86

@deepak7194

Description

@deepak7194

Hi Team,

I have cloned the below Solution and tried the OAuthWebSample solution by replacing with my Values which i have registered.

Starting when i have started the solution with my values i have Authorized the Application and i have not got any authorization Code and state for me to create a token.

In the Code the Callback method is accepting Code and state as parameters and i tried many times after me authorizing the app and i am getting two different error.

  1. on completion of authorization its redirecting to the This site cant provide a secure connection and displaying as below in the address bar https://localhost:43742/OAuth/Callback?error=InvalidScope

2)Can anyone please clarify me on the Callback URL what should be mentioned because in the solution screen it was mentioned https://yoursite.azurewebsite.net/OAuth/CallBack. Should we need to maintain the callback URL in the same manner where we need to include AzureWebSite.Net in my application URL?

  1. For the first time users we will be allowing them to authorize the APP. after that how we need to achieve the token creation in the callback functionality?

I am new to this OAuth Authentication can anyone guide me in the right direction of how i can upgrade my application from removing the PAT token authentication to OAUTH Bearer token authentication. Hoping for a faster reply.

Thanks,
Deepak

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions