I would like your help on getting sessionToken from Sign in widget.
My use case is:
I wanted to perform some action for users by using users endpoints given by okta. so i need to mint an oauth token from organization authorization server in which i can get API scopes like “okta.user.read” or “okta.user.manage”. I know i can use organization token (api_token) but i don’t want to use it. i want to use access token, minted from organization authorization server.
My problem is that i’m using Single page application and okta sign in widget for this. This flow is required for my application.
i justr need to get either username and password that is been filled by user in Sign in widget to perform auhtorization flow for getting organizational authorization token to call my okt users api’s.
or the “SessionToken” of the user that is Siging into my application through Sign in widget. so i can perform authorization request at back end to get the access token.
guide me on this to how to get either “username and password” or “SessionToken” from Sign-in widget