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

ClientIdError at /openid/authorize - No exception message supplied #369

Open
stodge opened this issue May 7, 2020 · 0 comments
Open

ClientIdError at /openid/authorize - No exception message supplied #369

stodge opened this issue May 7, 2020 · 0 comments

Comments

@stodge
Copy link

stodge commented May 7, 2020

After I login I get this error:

ClientIdError at /openid/authorize
No exception message supplied

The POST to /openid/authorize includes the "next" parameter:

/openid/authorize?response_type=code&scope=openid+email&client_id=517813&redirect_uri=http://192.168.1.30:12000/oidc/callback/&state=

But when it tries to get the client from the DB, it doesn't have an ID to retrieve:

kwargs | {'client_id': ''}

My login form is this, which I think is correct:

    <form class="pure-form pure-form-stacked" method="POST" action="{% url 'oidc_provider:authorize' %}">
        {% csrf_token %}
        <fieldset>
            <legend>Please login</legend>
            <input type="hidden" name="next" value="{{ next }}">
            <input id="id_username" name="username" type="text" placeholder="Username" />
            <input id="id_password" name="password" type="password" placeholder="Password" />
            <label for="default-remember">
            <button type="submit">Sign In</button>
        </fieldset>
    </form>

So why isn't getting the parameters it needs?

Am I right in thinking that the flow is:

POST /openid/authorize
GET /accounts/login
POST /openid/authorize
(redirect back to client?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant