Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting InvalidScope error after completing the Authentication #86

Open
deepak7194 opened this issue Mar 27, 2022 · 0 comments
Open

Getting InvalidScope error after completing the Authentication #86

deepak7194 opened this issue Mar 27, 2022 · 0 comments

Comments

@deepak7194
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant