Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

skipping user consent screen oauth2

Tags:

oauth-2.0

Im using oauth2 for my app. Im getting google user profile information. Every thing is working fine. I want to know if there's any way to skip user consent screen? I want to get access token without showing "Allow access" step.

Thanks!

like image 241
Kevin Avatar asked Oct 31 '12 09:10

Kevin


People also ask

Is OAuth consent screen required?

All apps using OAuth 2.0 require a consent screen configuration, but you only need to list scopes for apps used by people outside your Google Workspace organization. Tip: If you don't know required consent screen information, you can use placeholder information prior to release.

How do I turn off consent screen?

Head to the APIs page and select your API. In the Settings you'll see an option to Allow Skipping User Consent which you should enable. This option is also documented in more detail here. Note: This toggle allows skipping consent for verifiable first party clients.

How do I remove the logo from the OAuth consent screen?

What you could do, is submit the app for verification anyway and once you get a reply from this email -> "oauth-f... @google.com" You could explain to them, the application is for internal us, no verification is needed and if they could remove the logo.

What is user consent in oauth2?

If a user authenticates through a third-party application and the application requests authorization to access the user's information or perform some action at an API on their behalf, the user will see a consent dialog. For example, this request: GET /authorize?


2 Answers

No.

This is what oAuth is all about - you get a token, only after the user has been authenticated and authorized your web-app to use his info.

like image 199
OhadR Avatar answered Oct 05 '22 19:10

OhadR


No. But you can skip the second time.

I found the good explanation about this question:
Why does Google OAuth2 re-ask user for permission when i send them to auth url again

like image 25
gmunkhbaatarmn Avatar answered Oct 05 '22 20:10

gmunkhbaatarmn