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 / Pass to the BackEnd th...
Power Pages
Unanswered

Pass to the BackEnd the user authentication information

(0) ShareShare
ReportReport
Posted on by 10

Context: I am developing an application in Power Pages. The site is a single page where certain activities can be carried out. Currently, the code is completely custom (I opened Visual Studio Code, deleted all the default HTML, CSS, and JS, and inserted my code - exploiting some Power Pages functionalities, especially user management).

 

This application makes calls (using simple JS - fetch APIs) to external REST APIs outside of Power Pages (managed on Azure Function).

 

What I would like to do is pass the user's token to the APIs to evaluate whether that connected user can/cannot call that API and in any case also give to the BE an idea of which user is logged in for some other functionalities.

 

How can I do this? Is there any flag to activate in Power Pages? Is there perhaps a field like {{user.emailaddress1}}?

Categories:
I have the same question (0)
  • EmadBeshai Profile Picture
    806 Moderator on at

    Hi @lcristo-avvale1 ,

     

    On your webpage, you can type Liquid and JS together at the HTML of the content page as shown below

    EmadBeshai_0-1708852585348.png

    If this post helps you with your problem, please mark this answer as Accepted Solution.
    If you like my response, please give it a Thumbs Up. 

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
11manish Profile Picture

11manish 50

#2
Valantis Profile Picture

Valantis 26

#3
omkarsupreme Profile Picture

omkarsupreme 24

Last 30 days Overall leaderboard