Skip to content

Conversation

@SimonTheLeg
Copy link

As described in detail in #183, I was not able to get the builtin connector example to work. This PR includes two quality of life fixes and an update to the curl commands. It fixes both the wrongly set password and also gets rid of the need for the base64 header, which also I think has a syntactic mistake by not properly using a : character.

Fixes: #183


```shell
curl -L -X POST 'http://localhost:8080/dex/token' \
-H 'Authorization: Basic cHVibGljLWNsaWVudAo=' \ # base64 encoded: public-client

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basic auth is also acceptable. The current content is wrong.
Should be

    -H 'Authorization: Basic cHVibGljLWNsaWVudDo=' \


```shell
curl -L -X POST 'http://localhost:8080/dex/token' \
-H 'Authorization: Basic cHJpdmF0ZS1jbGllbnQ6YXBwLXNlY3JldAo=' \ # base64 encoded: private-client:app-secret

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be

-H 'Authorization: Basic cHJpdmF0ZS1jbGllbnQ6YXBwLXNlY3JldA=' \ 
private-client:app-secret

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

Successfully merging this pull request may close these issues.

Following connectors/local example results in "Invalid client credentials"

2 participants