Hey,
I’m trying to create a session using Okta’s OAuth2 (using api calls only).
the flow:
1.User enters my website
2.I have my own verification mechanism (that does not include password) so user go through it.
3.Somehow if #2 was successful ,I need to create a session and pass to the frontend.
I’m open to suggestions so if OAuth2 is not the right way (or not the best way) please suggest a way
Hi @gekaxid811! You’ll need to get a session token from the Okta Authentication API first and then you can exchange that for a session cookie at the /authorize endpoint (OAuth 2.0 API) see - Work with Okta session cookies | Okta Developer.
Thanks for answering !
Can I get these token + exchange action without any client’s interaction ?
I mean , backend to backend architecture.
In edition , where can I set the cookie’s domain ?
I see that the Auth API says it allows you to verify the username and password credentials for a user, my users don’t have a password.