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

Entra App installation failure #4133

Open
3 of 5 tasks
DimuthuSig opened this issue Oct 1, 2024 · 0 comments
Open
3 of 5 tasks

Entra App installation failure #4133

DimuthuSig opened this issue Oct 1, 2024 · 0 comments
Labels
bug Something is not working.

Comments

@DimuthuSig
Copy link

DimuthuSig commented Oct 1, 2024

Preflight checklist

Ory Network Project

No response

Describe the bug

We have an Entra App to distribute to clients via an installation link with format https://login.microsoftonline.com/common/adminconsent?client_id=<app-client-id>&redirect_uri=https://<kratos-api-endpoint>/self-service/methods/oidc/callback/<provider>. This link then triggers the following flow https://<kratos-api-endpoint>/self-service/methods/oidc/callback/<provider>?admin_consent=True&tenant=<tenantid>

This results in the following error:

Unable to complete OpenID Connect flow because the OpenID Provider did not return the state query parameter

The Kratos logs show that in fact the query parameters are empty query:<nil>.

Interestingly when opening a new tab and attempting to login, the login flow works. It is only on the initial installation of the app.

Reproducing the bug

  1. Create an Entra App of type Web.
  2. Add a Kratos callback URL.
  3. Attempt to install Entra App in a separate tenant.

Relevant log output

An error occurred and is being forwarded to the error user interface. audience=application error=map[debug: message:The request was malformed or contained invalid parameters reason:Unable to complete OpenID Connect flow because the OpenID Provider did not return the state query.

Relevant configuration

No response

Version

v0.6.3-alpha.1

service_name=Ory Kratos service_version=v1.1.0

On which operating system are you observing this issue?

Linux

In which environment are you deploying?

Kubernetes with Helm

Additional Context

https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/grant-admin-consent?pivots=portal

No response

@DimuthuSig DimuthuSig added the bug Something is not working. label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working.
Projects
None yet
Development

No branches or pull requests

1 participant