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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Getting Public Key To ...
Power Pages
Unanswered

Getting Public Key To Validate Token From Implicit Grant Flow

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I am implementing the OAuth 2.0 Implicit Grant Flow into my Power Pages app in order to generate tokens which will be passed through when calling a custom external API. The external API must validate the token signature along with some other claims. In order to validate the token signature, it must obtain the public key from <portal_url>/_services/auth/publickey as per the documentation Use OAuth 2.0 implicit grant flow in your Power Pages site | Microsoft Learn. However, this is not possible as this endpoint requires cookie-based authentication as I've seen from inspecting a successful request. I have also tried but could not access it using postman and passing in a token generated from <portal_url>/_services/auth/token. Is there another way for me to access this public key/validate my tokens? Also thought of storing it in key vault but it isn't clear how often the key is rotated and I would like to avoid manually updating the key vault if possible.

Categories:
I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
rezarizvii Profile Picture

rezarizvii 55

#2
11manish Profile Picture

11manish 48

#3
Valantis Profile Picture

Valantis 46

Last 30 days Overall leaderboard