Have added api key as authorization header, but when calling the request from angular app cors error is thrown. i have added in trusted origin too. the error for the request i get is
image
1893×173 16.3 KB
Kindly help me to get over this.
Thanks,
venkatesh.
I called from my .net core backend with authorization header, but the response is like 403 forbidden.
Error response is like
{“errorCode”:“E0000005”,“errorSummary”:“Invalid session”,“errorLink”:“E0000005”,“errorId”:“oaeXDCjsTFYSMiV4Z6G8xeCHg”,“errorCauses”:
}. Should i send session token with this ?
Any help would be appreciated. Thanks.
using “Bearer {{access token}}” won’t work unless you are implementing OAuth for Okta AND have either a user with high enough permissions (an Admin user per this
role chart
) or a Service app requesting tokens with the correct Okta scopes (in this case,
okta.users.read
)
If you want to use Okta issued OAuth tokens to access Okta resources, I recommend reviewing these two guides:
User-scoped tokens
OR a
Service app
.
I am tryingg to create a user (POST request), I have trusted origin as localhost:4200 specified in settings for my custom domain but it sill failing with CORS error
I am trying to call this code myself, without OKTA’s widget.
Should I do anything else?
How are you authorizing the call to
api/v1/users,
api/v1/users/{userId}
, or api/v1/users/me? Only endpoints that have a CORS tag under them in our API docs are CORS enabled, and api/v1/users (without a
userId
or
me
) is NOT a CORS enabled endpoint so you cannot make a List Users request from the front-end.
Obviously not as I am trying to register user via Okta endpoint.
Why OIDC endpoints are not marked with this sign but available for CORS?
Is there any way to make user
registration
available via frontend, without any backend?
I tried to run Okta sample and I see a lot of endpoints used by Okta widget which are missing in documentation
POST https://{CUSTOM_DOIMAIN}/api/v1/registration/reg19dz0r3BzH8PPa4x7/register
POST https://{CUSTOM_DOIMAIN}/api/v1/authn
POST https://{CUSTOM_DOIMAIN}/user/welcome/login/internal
POST https://{CUSTOM_DOIMAIN}/security/xsrf-token
POST https://{CUSTOM_DOIMAIN}/user/security_fields
Several of the other routes you note remain undocumented as they are only available/used internally by the Okta-hosted login page. If you are unable to find documentation about a given API endpoint, then we do not support developers interacting with it directly.
I should note that
/authn
IS a documented endpoint and would be use to log a user in if making a custom login page.
AuthN isn’t like for anonymous user, but it’s a problem that you don’t document this endpoints for some reasons.
I just don’t want to make registration on backend site - with okta API token - as I just want to hit auth server even when my backend is down.
New model doesn’t contain samples for browser, are you aware of any possible changes in future for the new model with browser?
I just want to use either password/webauthn approach without any custom okta widgets