hoppscotch / hoppscotch

Open source API development ecosystem - https://hoppscotch.io (open-source alternative to Postman, Insomnia)

Home Page:https://hoppscotch.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[bug]: Error when login with Azure AD (Azure Entra)

baoduy opened this issue · comments

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When I do login with Azure AD I got the below error

[Nest] 57 - 04/28/2024, 8:26:12 AM ERROR [ExceptionsHandler] Failed to obtain access token Backend Server | InternalOAuthError: Failed to obtain access token

Steps to reproduce

  1. Goto the page and click login with Micrsoft
  2. After redirected back to backend app then I got the error on the log.

here is my Azure AD Application. Register Manifresh

{
	"id": "878eea34-734d-430b-a7a6-0d04485a43bf",
	"acceptMappedClaims": null,
	"accessTokenAcceptedVersion": null,
	"addIns": [],
	"allowPublicClient": null,
	"appId": "95acfcdb-a8a6-4aae-b3f6-da7e8a24b124",
	"appRoles": [],
	"oauth2AllowUrlPathMatching": false,
	"createdDateTime": "2024-04-28T08:34:52Z",
	"description": null,
	"certification": null,
	"disabledByMicrosoftStatus": null,
	"groupMembershipClaims": null,
	"identifierUris": [],
	"informationalUrls": {
		"termsOfService": null,
		"support": null,
		"privacy": null,
		"marketing": null
	},
	"keyCredentials": [],
	"knownClientApplications": [],
	"logoUrl": null,
	"logoutUrl": null,
	"name": "dev-hoppscotch",
	"notes": null,
	"oauth2AllowIdTokenImplicitFlow": false,
	"oauth2AllowImplicitFlow": false,
	"oauth2Permissions": [],
	"oauth2RequirePostResponse": false,
	"optionalClaims": null,
	"orgRestrictions": [],
	"parentalControlSettings": {
		"countriesBlockedForMinors": [],
		"legalAgeGroupRule": "Allow"
	},
	"passwordCredentials": [
		{
			"customKeyIdentifier": null,
			"endDate": "2026-04-28T08:35:53.608Z",
			"keyId": "ede10190-61b4-44a8-8104-57be477c8e2d",
			"startDate": "2024-04-28T08:35:53.608Z",
			"value": null,
			"createdOn": "2024-04-28T08:36:13.464369Z",
			"hint": "7.I",
			"displayName": "dev-hoppscotch"
		}
	],
	"preAuthorizedApplications": [],
	"publisherDomain": "ad.drunkcoding.net",
	"replyUrlsWithType": [
		{
			"url": "https://api.dev.local/v1/auth/microsoft/callback",
			"type": "Web"
		}
	],
	"requiredResourceAccess": [
		{
			"resourceAppId": "00000003-0000-0000-c000-000000000000",
			"resourceAccess": [
				{
					"id": "e1fe6dd8-ba31-4d61-89e7-88639da4683d",
					"type": "Scope"
				}
			]
		}
	],
	"samlMetadataUrl": null,
	"signInUrl": null,
	"signInAudience": "AzureADMyOrg",
	"tags": [],
	"tokenEncryptionKeyId": null
}

Environment

Release

Version

Self-hosted

Hi @JoelJacobStephen May I check when this issue will be fixed or any workaround?