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

client: do not show/send secret when client is public #765

Merged
merged 3 commits into from
Feb 6, 2018
Merged

client: do not show/send secret when client is public #765

merged 3 commits into from
Feb 6, 2018

Conversation

zepatrik
Copy link
Member

@zepatrik zepatrik commented Feb 6, 2018

Previously a newly created public client had a secret send with the initial response and this secret was displayed in the CLI.
Now it is clear that there is no secret needed for public clients. It is not displayed in the CLI anymore.

closes #737

Previously a newly created public client had a secret send with the initial response and this secret was displayed in the CLI.
Now it is clear that there is no secret needed for public clients. It is not displayed in the CLI anymore.
@@ -71,7 +71,7 @@ func TestClientSDK(t *testing.T) {
c := hydra.NewOAuth2ApiWithBasePath(server.URL)
c.Configuration.Transport = httpClient.Transport

t.Run("foo", func(t *testing.T) {
t.Run("client is created and updated", func(t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

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

Add case=client is ... here

@@ -106,4 +106,18 @@ func TestClientSDK(t *testing.T) {
require.NoError(t, err)
assert.Equal(t, http.StatusNotFound, response.StatusCode)
})

t.Run("public client is transmitted without secret", func(t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

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

Add case=public client is ... here

@aeneasr aeneasr merged commit 439267b into ory:master Feb 6, 2018
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.

Do not show client secret when client is public in CLI
2 participants