[PR #4453] feat: allow configuration of the prompt parameter for microsoft auth #4810

Open
opened 2026-03-17 02:18:41 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/4453
Author: @privatwolke
Created: 10/17/2024
Status: 🔄 Open

Base: mainHead: feat/microsoft-auth-prompt-parameter


📝 Commits (1)

  • 8772a79 feat: allow configuration of the prompt parameter for microsoft auth

📊 Changes

10 files changed (+38 additions, -1 deletions)

View changed files

📝 .env.example (+1 -0)
📝 packages/hoppscotch-backend/src/auth/guards/microsoft-sso-.guard.ts (+1 -0)
📝 packages/hoppscotch-backend/src/infra-config/helper.ts (+6 -0)
📝 packages/hoppscotch-backend/src/infra-config/infra-config.service.ts (+7 -1)
📝 packages/hoppscotch-backend/src/types/InfraConfig.ts (+1 -0)
📝 packages/hoppscotch-backend/src/utils.ts (+9 -0)
📝 packages/hoppscotch-sh-admin/locales/en.json (+1 -0)
📝 packages/hoppscotch-sh-admin/src/components/settings/AuthProvider.vue (+6 -0)
📝 packages/hoppscotch-sh-admin/src/composables/useConfigHandler.ts (+1 -0)
📝 packages/hoppscotch-sh-admin/src/helpers/configs.ts (+5 -0)

📄 Description

What's changed

  • Added MICROSOFT_PROMPT environment variable and infra config option.
  • This allows people to configure the prompt param for authorization requests.
  • The prompt param allows admins to define if the login should be slient (if possible), require active account selection or a fresh login.
  • This is useful for people who are signed into multiple Microsoft accounts and need to choose the correct one.
  • The config setting defaults to "none" which preserves the current behavior.

Notes to reviewers

  • Should be added to the self hosting documentation as well.
  • Added one new translation string in the admin component.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/4453 **Author:** [@privatwolke](https://github.com/privatwolke) **Created:** 10/17/2024 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat/microsoft-auth-prompt-parameter` --- ### 📝 Commits (1) - [`8772a79`](https://github.com/hoppscotch/hoppscotch/commit/8772a79fe6857bbad4039a1f741a6e08fc12fc71) feat: allow configuration of the prompt parameter for microsoft auth ### 📊 Changes **10 files changed** (+38 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+1 -0) 📝 `packages/hoppscotch-backend/src/auth/guards/microsoft-sso-.guard.ts` (+1 -0) 📝 `packages/hoppscotch-backend/src/infra-config/helper.ts` (+6 -0) 📝 `packages/hoppscotch-backend/src/infra-config/infra-config.service.ts` (+7 -1) 📝 `packages/hoppscotch-backend/src/types/InfraConfig.ts` (+1 -0) 📝 `packages/hoppscotch-backend/src/utils.ts` (+9 -0) 📝 `packages/hoppscotch-sh-admin/locales/en.json` (+1 -0) 📝 `packages/hoppscotch-sh-admin/src/components/settings/AuthProvider.vue` (+6 -0) 📝 `packages/hoppscotch-sh-admin/src/composables/useConfigHandler.ts` (+1 -0) 📝 `packages/hoppscotch-sh-admin/src/helpers/configs.ts` (+5 -0) </details> ### 📄 Description <!-- Thanks for creating this pull request 🤗 Please make sure that the pull request is limited to one type (docs, feature, etc.) and keep it as small as possible. You can open multiple prs instead of opening a huge one. --> <!-- If this pull request closes an issue, please mention the issue number below --> <!-- Add an introduction into what this PR tries to solve in a couple of sentences --> ### What's changed <!-- Describe point by point the different things you have changed in this PR --> * Added `MICROSOFT_PROMPT` environment variable and infra config option. * This allows people to configure the [prompt](https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-auth-code-flow#request-an-authorization-code) param for authorization requests. * The `prompt` param allows admins to define if the login should be slient (if possible), require active account selection or a fresh login. * This is useful for people who are signed into multiple Microsoft accounts and need to choose the correct one. * The config setting defaults to "none" which preserves the current behavior. <!-- You can also choose to add a list of changes and if they have been completed or not by using the markdown to-do list syntax - [ ] Not Completed - [x] Completed --> ### Notes to reviewers <!-- Any information you feel the reviewer should know about when reviewing your PR --> * Should be added to the self hosting documentation as well. * Added one new translation string in the admin component. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#4810
No description provided.