[GH-ISSUE #3211] [feature]: customize oAuth methods on SelfHosted #1061

Closed
opened 2026-03-16 18:20:58 +03:00 by kerem · 5 comments
Owner

Originally created by @jmtt89 on GitHub (Jul 25, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3211

Is there an existing issue for this?

  • I have searched the existing issues

Summary

All Oath configurations are required, it would be nice if the configuration for a certain platform did not exist in the .env file, that platform would not appear

Why should this be worked on?

When using a self-hosted instance, a very common scenario is to only allow access to members of my company or custom external invites, not anyone with a Google or Microsoft account.

Originally created by @jmtt89 on GitHub (Jul 25, 2023). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3211 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Summary All Oath configurations are required, it would be nice if the configuration for a certain platform did not exist in the .env file, that platform would not appear ### Why should this be worked on? When using a self-hosted instance, a very common scenario is to only allow access to members of my company or custom external invites, not anyone with a Google or Microsoft account.
kerem 2026-03-16 18:20:58 +03:00
Author
Owner

@RaHehl commented on GitHub (Jul 26, 2023):

take a look at #3200 & #3088

<!-- gh-comment-id:1651362878 --> @RaHehl commented on GitHub (Jul 26, 2023): take a look at #3200 & #3088
Author
Owner

@jmtt89 commented on GitHub (Jul 26, 2023):

but these tasks are only for the frontend, right?

what I know is on backend, if you don't add GOOGLE_SCOPE env variable on .env, the backend app crash with error on split method.

....
export class GoogleStrategy extends PassportStrategy(Strategy) {
  constructor(
    private usersService: UserService,
    private authService: AuthService,
  ) {
    super({
      clientID: process.env.GOOGLE_CLIENT_ID,
      clientSecret: process.env.GOOGLE_CLIENT_SECRET,
      callbackURL: process.env.GOOGLE_CALLBACK_URL,
      scope: process.env.GOOGLE_SCOPE.split(','),
      passReqToCallback: true,
      store: true,
    });
  }
  ....
<!-- gh-comment-id:1652011516 --> @jmtt89 commented on GitHub (Jul 26, 2023): but these tasks are only for the frontend, right? what I know is on backend, if you don't add GOOGLE_SCOPE env variable on .env, the backend app crash with error on split method. ```ts .... export class GoogleStrategy extends PassportStrategy(Strategy) { constructor( private usersService: UserService, private authService: AuthService, ) { super({ clientID: process.env.GOOGLE_CLIENT_ID, clientSecret: process.env.GOOGLE_CLIENT_SECRET, callbackURL: process.env.GOOGLE_CALLBACK_URL, scope: process.env.GOOGLE_SCOPE.split(','), passReqToCallback: true, store: true, }); } .... ```
Author
Owner

@balub commented on GitHub (Jul 28, 2023):

You can checkout #3204 we are currently working on this.

<!-- gh-comment-id:1655322128 --> @balub commented on GitHub (Jul 28, 2023): You can checkout #3204 we are currently working on this.
Author
Owner

@AndrewBastin commented on GitHub (Sep 6, 2023):

Closing as this is resolved in 2023.8.0

<!-- gh-comment-id:1708686122 --> @AndrewBastin commented on GitHub (Sep 6, 2023): Closing as this is resolved in 2023.8.0
Author
Owner

@jmtt89 commented on GitHub (Sep 7, 2023):

thanks!!

<!-- gh-comment-id:1709312892 --> @jmtt89 commented on GitHub (Sep 7, 2023): thanks!!
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#1061
No description provided.