netbox icon indicating copy to clipboard operation
netbox copied to clipboard

Document IdP-initiated SSO login after the social-auth-app-django v6 upgrade

Open jnovinger opened this issue 3 weeks ago • 4 comments

Change Type

Addition

Area

Administration

Proposed Changes

NetBox v4.7 upgraded social-auth-app-django to v6, which made the login view (/oauth/login/<backend>/) POST only. IdP-initiated logins, such as clicking the NetBox tile in the Okta dashboard, send a GET to that URL and now receive a 405 (#23516). Upstream provides an opt-in bridge for this flow, but the NetBox docs don't mention it.

  1. docs/administration/authentication/overview.md: add a section on IdP-initiated login. Enable the bridge with SOCIAL_AUTH_ENABLE_LAUNCH_BRIDGES = ['idp_launch'] and set the IdP's initiate login URI to /oauth/idp-launch/<backend>/ instead of /oauth/login/<backend>/.
  2. docs/administration/authentication/okta.md: add the "Initiate login URI" (https://{netbox}/oauth/idp-launch/okta-openidconnect/) to the app registration steps. When SOCIAL_AUTH_OKTA_OPENIDCONNECT_API_URL points at a custom authorization server (e.g. https://{Okta domain}/oauth2/default), the Okta dashboard sends the org domain as the token issuer, so SOCIAL_AUTH_OKTA_OPENIDCONNECT_ALLOWED_ID_TOKEN_ISSUERS = ['https://{Okta domain}'] is also required.
  3. docs/release-notes/version-4.7.md: under the social-auth-app-django upgrade note, call out that IdP-initiated logins return a 405 until the bridge is enabled.

The okta.md change overlaps with the restructure proposed in #23266.

jnovinger avatar Nov 10 '26 12:11 jnovinger

@jnovinger I want to work on this issue, could you assign it to me

himanchalkaushale avatar Nov 10 '26 15:11 himanchalkaushale

@himanchalkaushale I've assigned this to you.

Before you open a PR, please request a vouch by starting a discussion in the Vouch Request category. PRs from contributors who aren't yet vouched for are closed automatically. Please write the request yourself, in your own words. The details are in CONTRIBUTING.md.

jnovinger avatar Nov 10 '26 20:11 jnovinger

Hi, @jnovinger Hi! I've submitted my vouch request in the discussion. Could you please take a look when you get a chance? Thanks for your time!

himanchalkaushale avatar Nov 11 '26 12:11 himanchalkaushale

@himanchalkaushale vouched, thanks!

jeremystretch avatar Nov 11 '26 14:11 jeremystretch