Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

afrasiyabhaider's avatar

Default Authentication in Google API

I am building an application in which I will display lectures to students. Those Lectures should be on my Google Drive. So how can I prevent google OAuth screen to get Login Authentication of user. I dont want my user to be redirected to google consent screen.

Is there any solution?

0 likes
1 reply
skauk's avatar

If you're planning to use OAuth for user authentication then you have to go through it at least once to obtain a token. However, there are other options you can explore to avoid it. For example, you can create an OAuth service account and retrieve your lectures from Google Drive. Check out Google's documentation on using OAuth with service accounts.

Please or to participate in this conversation.