We are planning to use Okta for authorize user to access our portal. Is there a link where I can find sample code to access Okta and add users to an application?
Thanks Nick. I used the link you provided and setup as sent in the sample. I also crated an Okta account. When I execute the application and try to log in, I get the below msg:
Access to XMLHttpRequest at ‘https://dev-12795786.okta.com/api/v1/authn’ from origin ‘https://localhost:44314’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
a) Go to Okta Admin > Under Security > API > Go to “Trusted Origins”
b) Add origin
c) Origin name: your choice
d) Orign URL:
e) Tick for CORS/Redirect and save
Thanks nicksgg. This worked, but we decided to use the API not the SDK at this time. I am seeing an issues that I will need help. I post the issue on a separate thread
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.