mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #3266] [CLOSED] feat: adds OIDC support #4313
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4313
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/3266
Author: @becelot
Created: 8/19/2023
Status: ❌ Closed
Base:
main← Head:feat/oidc📝 Commits (10+)
363dac1feat: adds oidc backend implementation58d3681feat: adds oidc support to frontend9bae266feat: adds oidc support to sh-admin459b35fMerge branch 'release/2023.8.0' into feat/oidc0fad40aMerge branch 'release/2023.8.0' into feat/oidc6873041chore: update pnpm-lock057ecf9feat: proper support for OIDC scopes5c57189docs: adds OIDC to supported sign-in options9717851chore: fix linter issue61b2920chore: adjust toast text📊 Changes
49 files changed (+399 additions, -16 deletions)
View changed files
📝
.env.example(+13 -0)📝
README.md(+1 -0)📝
packages/hoppscotch-backend/package.json(+2 -0)📝
packages/hoppscotch-backend/src/auth/auth.controller.ts(+27 -0)📝
packages/hoppscotch-backend/src/auth/auth.module.ts(+3 -0)➕
packages/hoppscotch-backend/src/auth/guards/oidc.guard.ts(+33 -0)📝
packages/hoppscotch-backend/src/auth/helper.ts(+1 -0)➕
packages/hoppscotch-backend/src/auth/strategies/oidc.strategy.ts(+82 -0)➕
packages/hoppscotch-common/assets/icons/auth/oidc.svg(+36 -0)📝
packages/hoppscotch-common/locales/af.json(+1 -0)📝
packages/hoppscotch-common/locales/ar.json(+1 -0)📝
packages/hoppscotch-common/locales/ca.json(+1 -0)📝
packages/hoppscotch-common/locales/cn.json(+1 -0)📝
packages/hoppscotch-common/locales/cs.json(+1 -0)📝
packages/hoppscotch-common/locales/da.json(+1 -0)📝
packages/hoppscotch-common/locales/de.json(+1 -0)📝
packages/hoppscotch-common/locales/el.json(+1 -0)📝
packages/hoppscotch-common/locales/en.json(+1 -0)📝
packages/hoppscotch-common/locales/es.json(+1 -0)📝
packages/hoppscotch-common/locales/fi.json(+1 -0)...and 29 more files
📄 Description
Closes #3001
Description
The PR adds the option to configure your own OIDC client in the self-hosted version. It expands on top of the conditional auth provider implementations added in https://github.com/hoppscotch/hoppscotch/pull/3225 and https://github.com/hoppscotch/hoppscotch/pull/3204. To enable the OIDC sign in, you need to fill in the OIDC configuration options (client id, secret, and issuer endpoints) in
.envand additionally enable theOIDCauth provider inVITE_ALLOWED_AUTH_PROVIDERS.You can also configure the login button text if you want to, e.g.
Login with COMPANY SSO.Checks
Additional Information
The implementation is tested with KeyCloak. I will provide setup documentation for both hoppscotch and different Identity providers in a second PR after this is merged.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.