Showing 17 of 17 total issues
Method Authority.Validate
has 7 return statements (exceeds 4 allowed). Open
Open
func (a *Authority) Validate(httpClient *http.Client) error {
if a.validated {
return nil
}
host := a.URL.Host
exported method AuthenticationContext.Client should have comment or be unexported Open
Open
func (a *AuthenticationContext) Client(ctx context.Context, resource, clientID, clientSecret string) (*http.Client, error) {
- Exclude checks
exported type Option should have comment or be unexported Open
Open
type Option func(*options)
- Exclude checks
2: cannot find package "golang.org/x/oauth2/clientcredentials" in any of: Open
Open
"golang.org/x/oauth2/clientcredentials"
- Exclude checks
exported method Authority.Validated should have comment or be unexported Open
Open
func (a *Authority) Validated() bool {
- Exclude checks
exported method Authority.Validate should have comment or be unexported Open
Open
func (a *Authority) Validate(httpClient *http.Client) error {
- Exclude checks
exported function NewAuthenticationContext should have comment or be unexported Open
Open
func NewAuthenticationContext(tenant string, opts ...Option) (*AuthenticationContext, error) {
- Exclude checks
exported method Authority.DeviceURL should have comment or be unexported Open
Open
func (a *Authority) DeviceURL() string {
- Exclude checks
exported type Authority should have comment or be unexported Open
Open
type Authority struct {
- Exclude checks
exported method Authority.IsADFSAuthority should have comment or be unexported Open
Open
func (a *Authority) IsADFSAuthority() bool {
- Exclude checks
exported method Authority.TokenURL should have comment or be unexported Open
Open
func (a *Authority) TokenURL() string {
- Exclude checks
exported function NewAuthority should have comment or be unexported Open
Open
func NewAuthority(urlStr string, validateAuthority bool) (*Authority, error) {
- Exclude checks
exported function ValidateAuthority should have comment or be unexported Open
Open
func ValidateAuthority() Option {
- Exclude checks
exported method Authority.AuthorityURL should have comment or be unexported Open
Open
func (a *Authority) AuthorityURL() string {
- Exclude checks
exported type AuthenticationContext should have comment or be unexported Open
Open
type AuthenticationContext struct {
- Exclude checks
exported function SetAuthorityHost should have comment or be unexported Open
Open
func SetAuthorityHost(authorityHost string) Option {
- Exclude checks
exported const WorldWideAuthority should have comment (or a comment on this block) or be unexported Open
Open
WorldWideAuthority = "login.microsoftonline.com"
- Exclude checks