Skip to content

Commit

Permalink
Use uuid.NewRandom.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joerger committed Nov 4, 2024
1 parent e18f9e3 commit 6f3674e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/web/terminal.go
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,12 @@ func newMFACeremony(stream *terminal.WSStream, createAuthenticateChallenge mfa.C
return newMFAPrompt(stream, channelID)
},
SSOMFACeremonyConstructor: func(ctx context.Context) (mfa.SSOMFACeremony, error) {
channelID = uuid.NewString()
id, err := uuid.NewRandom()
if err != nil {
return nil, trace.Wrap(err)
}
channelID = id.String()

u, err := url.Parse(sso.WebMFARedirect)
if err != nil {
return nil, trace.Wrap(err)
Expand Down

0 comments on commit 6f3674e

Please sign in to comment.