web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Portal Authentication ...
Power Pages
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.

 

Categories:
I have the same question (0)
  • hershal1999 Profile Picture
    111 on at

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

  • Splay Profile Picture
    2 on at

    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. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard