Skip to content

Commit

Permalink
chore: fix linter errors (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tabea Rieth authored Feb 7, 2024
1 parent 99064ca commit f2405d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions core/internalauth/application/oauthService.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ func (os *OauthService) Inject(config *struct {
}

// GetConfig returns an oauth config object
func (os *OauthService) GetConfig(TokenEndpointPath string, ClientID string, ClientSecret string, _ string) clientcredentials.Config {
func (os *OauthService) GetConfig(tokenEndpointPath string, clientID string, clientSecret string, _ string) clientcredentials.Config {
return clientcredentials.Config{
ClientID: ClientID,
ClientSecret: ClientSecret,
TokenURL: strings.TrimRight(os.baseURL, "/") + "/" + strings.TrimLeft(TokenEndpointPath, "/"),
ClientID: clientID,
ClientSecret: clientSecret,
TokenURL: strings.TrimRight(os.baseURL, "/") + "/" + strings.TrimLeft(tokenEndpointPath, "/"),
EndpointParams: url.Values{},
}
}
Expand Down
2 changes: 1 addition & 1 deletion core/internalauth/domain/internauthservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
// InternalAuthService interface for internal oauth clients
// todo necessary?
type InternalAuthService interface {
GetConfig(TokenEndpointPath string, ClientID string, ClientSecret string, GrantType string) clientcredentials.Config
GetConfig(tokenEndpointPath string, clientID string, clientSecret string, grantType string) clientcredentials.Config
GetOauthToken(ctx context.Context, config *clientcredentials.Config) (*oauth2.Token, error)
GetClaimsFromToken(tokenString string) jwt.MapClaims
}

0 comments on commit f2405d3

Please sign in to comment.