Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Okta enrollment flow does not work with the scoped token #48704

Closed
2 of 3 tasks
r0mant opened this issue Nov 8, 2024 · 2 comments
Closed
2 of 3 tasks

Okta enrollment flow does not work with the scoped token #48704

r0mant opened this issue Nov 8, 2024 · 2 comments

Comments

@r0mant
Copy link
Collaborator

r0mant commented Nov 8, 2024

Several issues in the Okta integration enrollment flow when trying to use Okta API token that's scoped to specific apps/groups via resource set:

  • Creation of the Okta SAML application fails if resource set restricts apps.
  • If apps are allowed but groups are restricted, it fails when we try to fetch Everyone group.

This makes it basically impossible to use the web UI enrollment flow end-to-end. A workaround would be to create an okta-integration SSO connector beforehand but that's awkward UX.

We should:

  • Fix the enrollment flow to gracefully skip SSO connector creation.
  • Create a connector without group assigned if API token was created by an Okta user with admin role assigned resource set restricting groups
  • Update documentation with precise instructions on how to use scoped tokens (what admin permissions are needed, how to scope resource set, SSO connector creation).
@kopiczko
Copy link
Contributor

The requirements here changed. We don't want to skip SSO connector creation because we want to synchronize users - it’s a prerequisite for synchronizing groups, applications, and access lists, making it critical to maintain functionality.

The only thing that functionally changes is that we will create a connector without group assigned if API token was created by an Okta user with admin role assigned resource set restricting groups.

@kopiczko
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants