Skip to content

Entra App installation failure #4133

Closed
Closed

Description

@DimuthuSig

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

Activity

  1. locked and limited conversation to collaborators on Feb 13, 2025
  2. converted this issue into a discussion #4308 on Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is not working.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions