Add authentication-method: bearer-token

This commit is contained in:
Rodney Lorrimar
2021-08-03 13:02:38 +08:00
parent a59fdc81fc
commit fedc66614f
3 changed files with 12 additions and 4 deletions
+4
View File
@@ -50,6 +50,10 @@ func CmdLogin(o *oreo.Client, globals *jiracli.GlobalOptions, opts *jiracli.Comm
log.Noticef("No need to login when using api-token authentication method")
return nil
}
if globals.AuthMethod() == "bearer-token" {
log.Noticef("No need to login when using bearer-token authentication method")
return nil
}
ua := o.WithoutRedirect().WithRetries(0).WithoutCallbacks().WithPostCallback(authCallback)
for {