ory-am/hydra

View on GitHub

Showing 412 of 865 total issues

Method OidcAPIService.DiscoverOidcConfigurationExecute has 8 return statements (exceeds 4 allowed).
Open

func (a *OidcAPIService) DiscoverOidcConfigurationExecute(r ApiDiscoverOidcConfigurationRequest) (*OidcConfiguration, *http.Response, error) {
    var (
        localVarHTTPMethod  = http.MethodGet
        localVarPostBody    interface{}
        formFiles           []formFile
Severity: Major
Found in internal/httpclient/api_oidc.go - About 50 mins to fix

    Method OAuth2APIService.RevokeOAuth2TokenExecute has 8 return statements (exceeds 4 allowed).
    Open

    func (a *OAuth2APIService) RevokeOAuth2TokenExecute(r ApiRevokeOAuth2TokenRequest) (*http.Response, error) {
        var (
            localVarHTTPMethod = http.MethodPost
            localVarPostBody   interface{}
            formFiles          []formFile
    Severity: Major
    Found in internal/httpclient/api_o_auth2.go - About 50 mins to fix

      Method OAuth2APIService.TrustOAuth2JwtGrantIssuerExecute has 8 return statements (exceeds 4 allowed).
      Open

      func (a *OAuth2APIService) TrustOAuth2JwtGrantIssuerExecute(r ApiTrustOAuth2JwtGrantIssuerRequest) (*TrustedOAuth2JwtGrantIssuer, *http.Response, error) {
          var (
              localVarHTTPMethod  = http.MethodPost
              localVarPostBody    interface{}
              formFiles           []formFile
      Severity: Major
      Found in internal/httpclient/api_o_auth2.go - About 50 mins to fix

        Method OAuth2APIService.ListTrustedOAuth2JwtGrantIssuersExecute has 8 return statements (exceeds 4 allowed).
        Open

        func (a *OAuth2APIService) ListTrustedOAuth2JwtGrantIssuersExecute(r ApiListTrustedOAuth2JwtGrantIssuersRequest) ([]TrustedOAuth2JwtGrantIssuer, *http.Response, error) {
            var (
                localVarHTTPMethod  = http.MethodGet
                localVarPostBody    interface{}
                formFiles           []formFile
        Severity: Major
        Found in internal/httpclient/api_o_auth2.go - About 50 mins to fix

          Method OAuth2APIService.DeleteOAuth2TokenExecute has 8 return statements (exceeds 4 allowed).
          Open

          func (a *OAuth2APIService) DeleteOAuth2TokenExecute(r ApiDeleteOAuth2TokenRequest) (*http.Response, error) {
              var (
                  localVarHTTPMethod = http.MethodDelete
                  localVarPostBody   interface{}
                  formFiles          []formFile
          Severity: Major
          Found in internal/httpclient/api_o_auth2.go - About 50 mins to fix

            Method OAuth2APIService.GetTrustedOAuth2JwtGrantIssuerExecute has 8 return statements (exceeds 4 allowed).
            Open

            func (a *OAuth2APIService) GetTrustedOAuth2JwtGrantIssuerExecute(r ApiGetTrustedOAuth2JwtGrantIssuerRequest) (*TrustedOAuth2JwtGrantIssuer, *http.Response, error) {
                var (
                    localVarHTTPMethod  = http.MethodGet
                    localVarPostBody    interface{}
                    formFiles           []formFile
            Severity: Major
            Found in internal/httpclient/api_o_auth2.go - About 50 mins to fix

              Method OAuth2APIService.RevokeOAuth2ConsentSessionsExecute has 8 return statements (exceeds 4 allowed).
              Open

              func (a *OAuth2APIService) RevokeOAuth2ConsentSessionsExecute(r ApiRevokeOAuth2ConsentSessionsRequest) (*http.Response, error) {
                  var (
                      localVarHTTPMethod = http.MethodDelete
                      localVarPostBody   interface{}
                      formFiles          []formFile
              Severity: Major
              Found in internal/httpclient/api_o_auth2.go - About 50 mins to fix

                Method DefaultStrategy.completeLogout has 8 return statements (exceeds 4 allowed).
                Open

                func (s *DefaultStrategy) completeLogout(ctx context.Context, w http.ResponseWriter, r *http.Request) (*flow.LogoutResult, error) {
                    verifier := r.URL.Query().Get("logout_verifier")
                
                    lr, err := s.r.ConsentManager().VerifyAndInvalidateLogoutRequest(r.Context(), verifier)
                    if err != nil {
                Severity: Major
                Found in consent/strategy_default.go - About 50 mins to fix

                  Method OidcAPIService.GetOidcUserInfoExecute has 8 return statements (exceeds 4 allowed).
                  Open

                  func (a *OidcAPIService) GetOidcUserInfoExecute(r ApiGetOidcUserInfoRequest) (*OidcUserInfo, *http.Response, error) {
                      var (
                          localVarHTTPMethod  = http.MethodGet
                          localVarPostBody    interface{}
                          formFiles           []formFile
                  Severity: Major
                  Found in internal/httpclient/api_oidc.go - About 50 mins to fix

                    Method JwkAPIService.SetJsonWebKeyExecute has 8 return statements (exceeds 4 allowed).
                    Open

                    func (a *JwkAPIService) SetJsonWebKeyExecute(r ApiSetJsonWebKeyRequest) (*JsonWebKey, *http.Response, error) {
                        var (
                            localVarHTTPMethod  = http.MethodPut
                            localVarPostBody    interface{}
                            formFiles           []formFile
                    Severity: Major
                    Found in internal/httpclient/api_jwk.go - About 50 mins to fix

                      Method JwkAPIService.GetJsonWebKeyExecute has 8 return statements (exceeds 4 allowed).
                      Open

                      func (a *JwkAPIService) GetJsonWebKeyExecute(r ApiGetJsonWebKeyRequest) (*JsonWebKeySet, *http.Response, error) {
                          var (
                              localVarHTTPMethod  = http.MethodGet
                              localVarPostBody    interface{}
                              formFiles           []formFile
                      Severity: Major
                      Found in internal/httpclient/api_jwk.go - About 50 mins to fix

                        Method RegistrySQL.Init has 8 return statements (exceeds 4 allowed).
                        Open

                        func (m *RegistrySQL) Init(
                            ctx context.Context,
                            skipNetworkInit bool,
                            migrate bool,
                            ctxer contextx.Contextualizer,
                        Severity: Major
                        Found in driver/registry_sql.go - About 50 mins to fix

                          Method JwkAPIService.SetJsonWebKeySetExecute has 8 return statements (exceeds 4 allowed).
                          Open

                          func (a *JwkAPIService) SetJsonWebKeySetExecute(r ApiSetJsonWebKeySetRequest) (*JsonWebKeySet, *http.Response, error) {
                              var (
                                  localVarHTTPMethod  = http.MethodPut
                                  localVarPostBody    interface{}
                                  formFiles           []formFile
                          Severity: Major
                          Found in internal/httpclient/api_jwk.go - About 50 mins to fix

                            Method Validator.ValidateSectorIdentifierURL has 8 return statements (exceeds 4 allowed).
                            Open

                            func (v *Validator) ValidateSectorIdentifierURL(ctx context.Context, location string, redirectURIs []string) error {
                                l, err := url.Parse(location)
                                if err != nil {
                                    return errorsx.WithStack(ErrInvalidClientMetadata.WithHintf("Value of sector_identifier_uri could not be parsed because %s.", err))
                                }
                            Severity: Major
                            Found in client/validator.go - About 50 mins to fix

                              Function parameterAddToHeaderOrQuery has 8 return statements (exceeds 4 allowed).
                              Open

                              func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) {
                                  var v = reflect.ValueOf(obj)
                                  var value = ""
                                  if v == reflect.ValueOf(nil) {
                                      value = "null"
                              Severity: Major
                              Found in internal/httpclient/client.go - About 50 mins to fix

                                Method JwkAPIService.GetJsonWebKeySetExecute has 8 return statements (exceeds 4 allowed).
                                Open

                                func (a *JwkAPIService) GetJsonWebKeySetExecute(r ApiGetJsonWebKeySetRequest) (*JsonWebKeySet, *http.Response, error) {
                                    var (
                                        localVarHTTPMethod  = http.MethodGet
                                        localVarPostBody    interface{}
                                        formFiles           []formFile
                                Severity: Major
                                Found in internal/httpclient/api_jwk.go - About 50 mins to fix

                                  Method MetadataAPIService.IsReadyExecute has 8 return statements (exceeds 4 allowed).
                                  Open

                                  func (a *MetadataAPIService) IsReadyExecute(r ApiIsReadyRequest) (*IsReady200Response, *http.Response, error) {
                                      var (
                                          localVarHTTPMethod  = http.MethodGet
                                          localVarPostBody    interface{}
                                          formFiles           []formFile
                                  Severity: Major
                                  Found in internal/httpclient/api_metadata.go - About 50 mins to fix

                                    Method WellknownAPIService.DiscoverJsonWebKeysExecute has 8 return statements (exceeds 4 allowed).
                                    Open

                                    func (a *WellknownAPIService) DiscoverJsonWebKeysExecute(r ApiDiscoverJsonWebKeysRequest) (*JsonWebKeySet, *http.Response, error) {
                                        var (
                                            localVarHTTPMethod  = http.MethodGet
                                            localVarPostBody    interface{}
                                            formFiles           []formFile
                                    Severity: Major
                                    Found in internal/httpclient/api_wellknown.go - About 50 mins to fix

                                      Method MigrateHandler.MigrateSQL has 8 return statements (exceeds 4 allowed).
                                      Open

                                      func (h *MigrateHandler) MigrateSQL(cmd *cobra.Command, args []string) (err error) {
                                          p, err := h.makePersister(cmd, args)
                                          if err != nil {
                                              return err
                                          }
                                      Severity: Major
                                      Found in cmd/cli/handler_migrate.go - About 50 mins to fix

                                        Method MetadataAPIService.IsAliveExecute has 8 return statements (exceeds 4 allowed).
                                        Open

                                        func (a *MetadataAPIService) IsAliveExecute(r ApiIsAliveRequest) (*HealthStatus, *http.Response, error) {
                                            var (
                                                localVarHTTPMethod  = http.MethodGet
                                                localVarPostBody    interface{}
                                                formFiles           []formFile
                                        Severity: Major
                                        Found in internal/httpclient/api_metadata.go - About 50 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language