Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael committed Sep 10, 2024
1 parent d31d36d commit 6b30f2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions security/multiauth/secured_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func (s *securedServicesrvc) Signin(ctx context.Context, p *securedservice.Signi
func (s *securedServicesrvc) Secure(ctx context.Context, p *securedservice.SecurePayload) (res string, err error) {
res = fmt.Sprintf("User authorized using JWT token %q", p.Token)
authInfo := contextAuthInfo(ctx)
s.logger.Printf(res)
s.logger.Print(res)
s.logger.Printf("%v", authInfo)
if p.Fail != nil && *p.Fail {
s.logger.Printf("Uh oh! `fail` passed in parameter. Auth failed!")
Expand All @@ -177,7 +177,7 @@ func (s *securedServicesrvc) Secure(ctx context.Context, p *securedservice.Secur
func (s *securedServicesrvc) DoublySecure(ctx context.Context, p *securedservice.DoublySecurePayload) (res string, err error) {
res = fmt.Sprintf("User authorized using JWT token %q and API Key %q", p.Token, p.Key)
authInfo := contextAuthInfo(ctx)
s.logger.Printf(res)
s.logger.Print(res)
s.logger.Printf("%v", authInfo)
return
}
Expand All @@ -187,7 +187,7 @@ func (s *securedServicesrvc) DoublySecure(ctx context.Context, p *securedservice
func (s *securedServicesrvc) AlsoDoublySecure(ctx context.Context, p *securedservice.AlsoDoublySecurePayload) (res string, err error) {
if p.Username != nil && p.Password != nil && p.OauthToken != nil {
res = fmt.Sprintf("User authorized using username %q/password %q and OAuth2 token %q", *p.Username, *p.Password, *p.OauthToken)
s.logger.Printf(res)
s.logger.Print(res)
return
}
res = fmt.Sprintf("User authorized using JWT token %q and API Key %q", *p.Token, *p.Key)
Expand Down

0 comments on commit 6b30f2e

Please sign in to comment.