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

Need a guidance to describe how to make a integrated authentication for my own app with frontier. #692

Open
micli opened this issue Jul 28, 2024 · 1 comment

Comments

@micli
Copy link

micli commented Jul 28, 2024

I saw frontier description on home page that frontier is a identity and access management tool. I thought that frontier can take responsibility of authentication in every REST API call/ web page access. How can may own app integrated frontier when REST API resquest contains bearer token? I checked documentation seems there is no specific article regarding this.

Thanks!

@kushsharma
Copy link
Member

You can authenticate in Frontier in multiple ways, starting with email-based OTP as the easiest. Mail configs needs to be set up for it to work.

Once configured, use /auth/register endpoint to specify email as a strategy and pass the required values. It will give you a state token and send an OTP to email. To start a session, provide this state and the OTP from email to /auth/callback endpoint. This will set the session cookies in your REST call starting the session. If the call is made from browser, the cookies will be persisted in browser and all subsequent calls to frontier will automatically send the cookies to authenticate the user.

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

2 participants