Skip to content

Add OIDC SSO login and account linking - #17

Open
ACodingGenie wants to merge 2 commits into
koush:mainfrom
ACodingGenie:main
Open

Add OIDC SSO login and account linking#17
ACodingGenie wants to merge 2 commits into
koush:mainfrom
ACodingGenie:main

Conversation

@ACodingGenie

Copy link
Copy Markdown

Summary

Wires up the UI for the OIDC authentication backend added to the server. Covers three flows: OIDC-only login, mixed basic+OIDC login, and linking an OIDC identity to an existing local account.

@ACodingGenie

Copy link
Copy Markdown
Author

Backend code: koush/scrypted#2077

Show OIDC SSO button, username/password form, or both depending on
authType returned by checkScryptedClientLogin.
- Fix root-relative /login/oidc and /login/oidc/link paths: use
  combineBaseUrl so cloud deployments hit the correct server origin
- Add .catch(() => {}) to Login.vue checkScryptedClientLogin call
- Fix open redirect: validate redirect_uri is same-origin before use
- Fix change_password sending confirmPassword instead of newPassword
- Export oidcEnabled computed from client.ts, removing the duplicate
  expression that existed in both Login.vue and AppBar.vue
- Export oidcLinked ref populated from GET /login oidcLinked field;
  hide the AppBar link button when already linked
- Replace native title= tooltip with v-tooltip on the link button
- Unify the two v-card-actions blocks in Login.vue into one
- authType typed as string | undefined to reflect server reality
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant