Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - Power Apps Portals
Unanswered

Portal Authentication with Refresh Tokens

(0) ShareShare
ReportReport
Posted on by 2

Hi guys,

 

I'm new to the Power Platform (converting from a c# developer 😁)

I would like to communicate with the YouTube API after a user has authenticated on my Portal with their Google oAuth login.

 

I would then like for an Automated Flow to run on a schedule that would use the token/refresh token while they are not logged in to the portal. So my YouTube connector needs an Access token and a Refresh token.

 

How could I set all this up when the user logs in to my portal for the first time? Has it been done before?

 

Much appreciated.

 

  • Splay Profile Picture
    2 on at
    Re: Portal Authentication with Refresh Tokens

    I'm not sure a detailed business requirement is needed here, it's a technical requirement.

     

    I have an scheduled automated Flow with a custom connector that uses my Google authentication to fetch data from the YouTube API every hour.
    On initial authentication, it receives a refresh token which can be used to re-authenticate in the background without the need to log in again.

    I would like to create a portal that uses the Google authentication. It would get a refresh token during the first login and that can be used by a scheduled Flow for that user. Every hour, the Flow would call the YouTube API with the users token and have access. 

  • hershal1999 Profile Picture
    111 on at
    Re: Portal Authentication with Refresh Tokens

    Can you please elaborate the business need to maintain the token? Just need to understand your requirement in detailed.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 1

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 1

#3
surya narayanan Profile Picture

surya narayanan 35