Skip to content

Commit

Permalink
Merge pull request #274 from overmindtech/refresh-auth-message
Browse files Browse the repository at this point in the history
Update manual authentication message
  • Loading branch information
DavidS-ovm authored May 8, 2024
2 parents cffed3f + cd84383 commit 4031513
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/tea_ensuretoken.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,17 @@ func (m ensureTokenModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
m.title = "Manual device authorization."
beginAuthMessage := `# Authenticate with a browser
Attempting to automatically open the SSO authorization page in your default browser.
If the browser does not open or you wish to use a different device to authorize this request, open the following URL:
Automatically opening the SSO authorization page in your default browser failed: %v
Please open the following URL in your browser to authenticate:
%v
Then enter the code:
%v
`
m.deviceMessage = markdownToString(fmt.Sprintf(beginAuthMessage, msg.deviceCode.VerificationURI, msg.deviceCode.UserCode))
m.deviceMessage = markdownToString(fmt.Sprintf(beginAuthMessage, msg.err, msg.deviceCode.VerificationURI, msg.deviceCode.UserCode))
return m, m.awaitTokenCmd
case waitingForAuthorizationMsg:
m.config = msg.config
Expand Down

0 comments on commit 4031513

Please sign in to comment.