[GH-ISSUE #3547] [feature]: Support Generic OAuth 2.0 Authentication Provider in the Self-Hosted Version #1214

Closed
opened 2026-03-16 19:17:12 +03:00 by kerem · 2 comments
Owner

Originally created by @bladeJumper on GitHub (Nov 14, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3547

Is there an existing issue for this?

  • I have searched the existing issues

Summary

Add support of generic OAuth 2.0 auth allows user to setup the OAuth authentication with a complete range of providers including GitHub enterprise edition and other self-hosted OAuth services.
This can be achieved with existing library like passport-oauth2.
Example config:

VITE_ALLOWED_AUTH_PROVIDERS=OAUTH2

#OAuth 2.0 Auth Config
OAUTH2_AUTH_URL=https://www.example.com/oauth2/authorize
OAUTH2_TOKEN_URL=https://www.example.com/oauth2/token
OAUTH2_CLIENT_ID=*****
OAUTH2_CLIENT_SECRET=*****
OAUTH2_CALLBACK_URL=http://localhost:3170/v1/auth/github/callback
OAUTH2_SCOPE=user:email

Why should this be worked on?

We are using GitHub enterprise edition instances, to leverage the authentication with that, we need to be able to configure a custom OAuth provider.
Similar functionality is supported by other application like jenkins & portainer.

Originally created by @bladeJumper on GitHub (Nov 14, 2023). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3547 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Summary Add support of generic OAuth 2.0 auth allows user to setup the OAuth authentication with a complete range of providers including GitHub enterprise edition and other self-hosted OAuth services. This can be achieved with existing library like [passport-oauth2](https://www.npmjs.com/package/passport-oauth2). Example config: ```.env VITE_ALLOWED_AUTH_PROVIDERS=OAUTH2 #OAuth 2.0 Auth Config OAUTH2_AUTH_URL=https://www.example.com/oauth2/authorize OAUTH2_TOKEN_URL=https://www.example.com/oauth2/token OAUTH2_CLIENT_ID=***** OAUTH2_CLIENT_SECRET=***** OAUTH2_CALLBACK_URL=http://localhost:3170/v1/auth/github/callback OAUTH2_SCOPE=user:email ``` ### Why should this be worked on? We are using GitHub enterprise edition instances, to leverage the authentication with that, we need to be able to configure a custom OAuth provider. Similar functionality is supported by other application like jenkins & portainer.
kerem 2026-03-16 19:17:12 +03:00
  • closed this issue
  • added the
    feature
    label
Author
Owner

@Igorgro commented on GitHub (Nov 14, 2023):

Duplicate of #3001

<!-- gh-comment-id:1809747545 --> @Igorgro commented on GitHub (Nov 14, 2023): Duplicate of #3001
Author
Owner

@liyasthomas commented on GitHub (Mar 7, 2024):

As pointed out by @Igorgro, this seems like a duplicate of #3001 hence closing.

<!-- gh-comment-id:1984113969 --> @liyasthomas commented on GitHub (Mar 7, 2024): As pointed out by @Igorgro, this seems like a duplicate of #3001 hence closing.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1214
No description provided.