Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
baoduy opened this issue Apr 28, 2024 · 1 comment
Open
1 task done

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

baoduy opened this issue Apr 28, 2024 · 1 comment
Labels
bug Something isn't working need testing Needs to be tested before merging onto production self-host Self hosted Hoppscotch instance

Comments

@baoduy
Copy link

baoduy commented Apr 28, 2024

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

@baoduy baoduy added bug Something isn't working need testing Needs to be tested before merging onto production labels Apr 28, 2024
@JoelJacobStephen JoelJacobStephen added the self-host Self hosted Hoppscotch instance label Apr 29, 2024
@baoduy
Copy link
Author

baoduy commented May 10, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need testing Needs to be tested before merging onto production self-host Self hosted Hoppscotch instance
Projects
None yet
Development

No branches or pull requests

2 participants