Skip to content

invalid_client at the end of the login flow, how to debug? #2932

Answered by azazel75
azazel75 asked this question in Q&A
Discussion options

You must be logged in to vote

Nailed it with a "consent all" consent endpoint like:

@jp.SetRoute('/auth/consent')
async def oauth_consent(request):
    """
    Hydra consent entry point
    """

    page = jp.WebPage(title="Welcome to the OAuth consent page")
    page + jp.H1(text="Consent page")
    challenge = request.query_params.get('consent_challenge')
    print("New OAuth consent request")

    if not challenge:
        print(f"Hydra consent challenge missing")
        page + jp.H1(text="Error, Missing 'consent_challenge' query parameter")
        return page

    con_req = await get_consent_request.asyncio(client=h_client,
                                                consent_challenge=challenge)
    if isins…

Replies: 6 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@vinckr
Comment options

@azazel75
Comment options

@azazel75
Comment options

@vinckr
Comment options

Answer selected by azazel75
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants