Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Checking Access Credentials within an action

Avatar

Avatar
Coach
MVP
ursboller
MVP

Likes

515 likes

Total Posts

1,016 posts

Correct Reply

254 solutions
Top badges earned
Coach
Contributor
Bedrock
View profile

Avatar
Coach
MVP
ursboller
MVP

Likes

515 likes

Total Posts

1,016 posts

Correct Reply

254 solutions
Top badges earned
Coach
Contributor
Bedrock
View profile
ursboller
MVP

17-09-2020

I want to check access credentials within an action of a firefly app. I can see the bearer token in the params, but how can I exctract any information about the user or access credentials? best would be to know what product profiles the user has to make a check against needed permissions. is there any way to retrieve more information about the user to which the bearer token belongs?

View Entire Topic

Avatar

Avatar
Give Back 3
Level 2
SarahXu
Level 2

Likes

7 likes

Total Posts

33 posts

Correct Reply

5 solutions
Top badges earned
Give Back 3
Give Back
Boost 5
Boost 3
Boost 1
View profile

Avatar
Give Back 3
Level 2
SarahXu
Level 2

Likes

7 likes

Total Posts

33 posts

Correct Reply

5 solutions
Top badges earned
Give Back 3
Give Back
Boost 5
Boost 3
Boost 1
View profile
SarahXu
Level 2

17-09-2020

Hi @ursboller 

What level of access are you looking for? One way I can think of is to pass in the user profile (like product context) from client side as a param into your action, and have your action check that before executing anything. This way you can further restrict access based on user information. 

 

Sarah