Questions tagged [okta]

Identity and mobility management.

Enterprise-grade identity & mobility management for all your apps, users & devices.

This tag covers all Okta products: - Identity - Mobility - Single sign on - Integrations etc.

1660 questions
8
votes
5 answers

how to test/mock out react hooks?

Recently I upgrade the okta-react library and have transitioned the app to use the new hooks. I am updating my tests now. useOktaAuth() is undefined. I want to be able to mock it out so I can test when a user is logged in. const { authState,…
huihuihui
  • 189
  • 4
  • 13
8
votes
1 answer

Add Custom AuthenticationProvider to Spring Boot + oauth +oidc

I've developed a basic oauth/oidc example using SpringBoot 2.1.7 with Okta providing authentication services. Here is my Gradle dependency setup for reference: plugins { id 'org.springframework.boot' version '2.1.7.RELEASE' id 'java' } apply…
Jim Kennedy
  • 782
  • 9
  • 23
8
votes
1 answer

spring-security-oauth2 JwkTokenStore with custom user details service

I've a rich web (react based) front end application that sends request to a backend ResourceServer application. The requests are sent with JWT in the header for authentication. My setup does authentication against an Okta Authorization Server and…
8
votes
3 answers

How can I get all groups a user belongs to using Okta's API?

I'm trying to sync users/groups that sit behind Okta in Active Directory. Specifically, I'd like to get all groups a user belongs to, upon login to a third party application. Looking at the Okta API documentation…
danvalencia
  • 251
  • 3
  • 11
7
votes
1 answer

Spring Security SAML Assertion to Roles conversion

I have been using SAML 2.0 with Spring Boot 2.5.6 using Okta as the Identity Provider. For the most part, I have been able to create a Web Application and integrate with Okta's Identity provider. The problem I am facing is related to roles. The…
7
votes
1 answer

Selenium testing : How to bypass okta in selenium

We have recently implemented okta into our application. Whenever the user wants to login it will ask for an okta code which will keep on changing every 30 seconds, but while running selenium how should I enter the okta code? Can I bypass okta for…
7
votes
1 answer

Safari's "Prevent cross-site tracking" breaks several Okta features (due to okta session not being created)

I'm using the okta sign-in widget to authenticate users within our application. The issue is that when 'prevent cross-site tracking' is checked within Safari (FF has a similar setting), login still works but single sign-on, MFA 'do not challenge'…
Matt
  • 4,405
  • 1
  • 17
  • 9
7
votes
0 answers

Experiences with migraton from OKTA to Azure AD

I'm wondering if anybody can share some practical experience here: I have a client making extensive use of the OKTA identity solution for single sign-on to various cloud/web applications (both internal and external) as well as extensive provisioning…
7
votes
2 answers

How to set up Okta as SAML IDP in AWS Cognito User Pool?

I will want to use Okta as SAML 2.0 based IDP, AWS Cognito as service provider, and Cognito user pool to have federated IDP configuration. I have followed all the steps mentioned in AWS sites listed below…
7
votes
1 answer

Okta introspect method returning bad request

trying to post to the introspect method is throwing a bad request error: "Bad request. Accept and/or Content-Type headers likely do not match supported values." here is the url I am…
twaldron
  • 2,722
  • 7
  • 40
  • 55
7
votes
4 answers

What's a good way to obtain STS credentials with a SAML federated login via Okta for use in local command line tools?

The Amazon Web Services API provides the AssumeRoleWithSAML endpoint to allow a user to exchange a SAML assertion for a set of temporary API credentials from the AWS Security Token Service. A SAML provider, like Okta, will generate a SAML assertion…
gene_wood
  • 1,960
  • 4
  • 26
  • 39
6
votes
0 answers

how to protect an API in fastapi using SAML SSO

I am writing a fastapi web app which gets authenticated using OKTA iDP with SAML 2.0 SSO. I want to protect my APIs in web app. I know fastapi has only Oauth2/token based API protection instead of cookie or session based. However, we receive only…
myquest4 sh
  • 371
  • 4
  • 16
6
votes
0 answers

upgrade from spring-security-saml2-core to Spring Security SAML2 service provider

We are using spring-security-saml2-core for SSO Okta Integration for the web application. GitHub: https://github.com/spring-projects/spring-security-saml This project is in maintenance mode and will each End-of-Life on 6 October 2021. Please use…
Madhusudana
  • 302
  • 3
  • 12
6
votes
1 answer

How to resolve a CORS error on OKTA Hosted Signout

I'm trying to add OKTA to my React application. I've gotten sign-in to work fine. But I'm struggling with Signout. Setup: I added OKTA to my project following these instructions from OKTA. This mostly worked, but included these instructions for…
GridDragon
  • 2,857
  • 2
  • 33
  • 41
6
votes
5 answers

Okta Sign-in widget breaks Jest tests - TypeError: Cannot read property 'backingStorePixelRatio' of null

As in the title. Found this issue on Okta dev forums https://devforum.okta.com/t/okta-sign-in-widget-breaks-neutrino-jest-tests/2874 where the author mentions that adding canvas-prebuiltnpm package to devDependencies fixed it for him. Sadly it…
codeepic
  • 3,723
  • 7
  • 36
  • 57