Skip to content

Commit 8df8676

Browse files
committed
Fix formatting
1 parent 999a580 commit 8df8676

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ The available flags are:
111111
--max-age string maximum authentication age in seconds
112112
--mtls-pushed-authorization-request-endpoint string server's mtls pushed authorization request endpoint
113113
--mtls-token-endpoint string server's mtls token endpoint
114+
--no-browser do not open browser
114115
--no-prompt disable prompt
115116
--par enable pushed authorization requests (PAR)
116117
--password string resource owner password credentials grant flow password

cmd/oauth2_authorize_code.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ func (c *OAuth2Cmd) AuthorizationCodeGrantFlow(clientConfig oauth2.ClientConfig,
5454
LogBox("PKCE", "code_verifier = %s\ncode_challenge = BASE64URL-ENCODE(SHA256(ASCII(code_verifier)))", codeVerifier)
5555
}
5656

57-
Logfln("\nGo to the following URL:\n\n%s\n", authorizeRequest.URL.String())
57+
Logfln("\nGo to the following URL:\n\n%s", authorizeRequest.URL.String())
5858

5959
if !clientConfig.NoBrowser {
60-
Logfln("Opening browser...\n")
60+
Logfln("\nOpening browser...")
6161
if err = browser.OpenURL(authorizeRequest.URL.String()); err != nil {
6262
LogError(err)
6363
}

cmd/oauth2_device.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ func (c *OAuth2Cmd) DeviceGrantFlow(clientConfig oauth2.ClientConfig, serverConf
3131

3232
LogRequestAndResponse(authorizationRequest, authorizationResponse)
3333

34-
Logfln("\nGo to the following URL:\n\n%s\n", authorizationResponse.VerificationURIComplete)
34+
Logfln("\nGo to the following URL:\n\n%s", authorizationResponse.VerificationURIComplete)
3535

3636
if !clientConfig.NoBrowser {
37-
Logfln("Opening browser...\n")
37+
Logfln("\nOpening browser...")
3838
if err = browser.OpenURL(authorizationResponse.VerificationURIComplete); err != nil {
3939
LogError(err)
4040
}

cmd/oauth2_implicit.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ func (c *OAuth2Cmd) ImplicitGrantFlow(clientConfig oauth2.ClientConfig, serverCo
2525

2626
LogRequest(authorizeRequest)
2727

28-
Logfln("\nGo to the following URL:\n\n%s\n", authorizeRequest.URL.String())
28+
Logfln("\nGo to the following URL:\n\n%s", authorizeRequest.URL.String())
2929

3030
if !clientConfig.NoBrowser {
31-
Logfln("Opening browser...\n")
31+
Logfln("\nOpening browser...")
3232
if err = browser.OpenURL(authorizeRequest.URL.String()); err != nil {
3333
LogError(err)
3434
}

0 commit comments

Comments
 (0)