Document IdP-initiated SSO login after the social-auth-app-django v6 upgrade
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.
docs/administration/authentication/overview.md: add a section on IdP-initiated login. Enable the bridge withSOCIAL_AUTH_ENABLE_LAUNCH_BRIDGES = ['idp_launch']and set the IdP's initiate login URI to/oauth/idp-launch/<backend>/instead of/oauth/login/<backend>/.docs/administration/authentication/okta.md: add the "Initiate login URI" (https://{netbox}/oauth/idp-launch/okta-openidconnect/) to the app registration steps. WhenSOCIAL_AUTH_OKTA_OPENIDCONNECT_API_URLpoints at a custom authorization server (e.g.https://{Okta domain}/oauth2/default), the Okta dashboard sends the org domain as the token issuer, soSOCIAL_AUTH_OKTA_OPENIDCONNECT_ALLOWED_ID_TOKEN_ISSUERS = ['https://{Okta domain}']is also required.docs/release-notes/version-4.7.md: under thesocial-auth-app-djangoupgrade 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 I want to work on this issue, could you assign it to me
@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.
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 vouched, thanks!