Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow lambdas to call internal APIs #1355

Closed
alapins opened this issue Aug 20, 2021 · 2 comments
Closed

Allow lambdas to call internal APIs #1355

alapins opened this issue Aug 20, 2021 · 2 comments

Comments

@alapins
Copy link

alapins commented Aug 20, 2021

Allow lambdas to call internal APIs

Problem

I'd like to customize a JWT to include information about what entity roles the user is assigned. This isn't currently supported out-of-the-box.

Solution

If I could call the existing APIs from within the lambda, however, I could add that information myself. I could also add any type of information currently in the system.

Alternatives/workarounds

None that I've been able to find in the documentation

Additional context

I suppose I could do this manually, but the process of deserializing the JSON and setting up the API call with an API token seems daunting. It would be great to be passed an "api" object that had methods corresponding to the public api and returning objects (i.e. a wrapper object containing references to the endpoint methods internally, skipping authentication).

Community guidelines

All issues filed in this repository must abide by the FusionAuth community guidelines.

How to vote

Please give us a thumbs up or thumbs down as a reaction to help us prioritize this feature. Feel free to comment if you have a particular need or comment on how this feature should work.

@robotdan
Copy link
Member

I think this is a duplicate of #229, if so, please upvote it.

@mooreds
Copy link
Collaborator

mooreds commented Aug 16, 2022

I think this is a duplicate of #267 (which lets you make HTTP calls to any API, including to FusionAuth).

@alapins please comment if not and I'll re-open.

@mooreds mooreds closed this as completed Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants