ory-am/hydra

View on GitHub
internal/httpclient/model_o_auth2_login_request.go

Summary

Maintainability
B
4 hrs
Test Coverage

OAuth2LoginRequest has 34 methods (exceeds 20 allowed). Consider refactoring.
Open

type OAuth2LoginRequest struct {
    // ID is the identifier (\"login challenge\") of the login request. It is used to identify the session.
    Challenge   string                                    `json:"challenge"`
    Client      OAuth2Client                              `json:"client"`
    OidcContext *OAuth2ConsentRequestOpenIDConnectContext `json:"oidc_context,omitempty"`
Severity: Minor
Found in internal/httpclient/model_o_auth2_login_request.go - About 4 hrs to fix

    Function NewOAuth2LoginRequest has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    func NewOAuth2LoginRequest(challenge string, client OAuth2Client, requestUrl string, skip bool, subject string) *OAuth2LoginRequest {
    Severity: Minor
    Found in internal/httpclient/model_o_auth2_login_request.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status