Skip to content

Commit

Permalink
feat(cmd): add route that redirects to the auth code url
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Jul 6, 2023
1 parent cb64770 commit 4db6416
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/cmd_perform_authorization_code.go
Expand Up @@ -198,6 +198,10 @@ and success, unless if the --no-shutdown flag is provided.`,
_ = tokenUserWelcome.Execute(w, &struct{ URL string }{URL: authCodeURL})
})

r.GET("/perform-flow", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
http.Redirect(w, r, authCodeURL, http.StatusFound)
})

type ed struct {
Name string
Description string
Expand Down

0 comments on commit 4db6416

Please sign in to comment.