Swashbuckle.Application.SwaggerUiConfig.EnableOAuth2Support C# (CSharp) Method

EnableOAuth2Support() public method

public EnableOAuth2Support ( string clientId, string clientSecret, string realm, string appName ) : void
clientId string
clientSecret string
realm string
appName string
return void
        public void EnableOAuth2Support(string clientId, string clientSecret, string realm, string appName)
        {
            _templateParams["%(OAuth2Enabled)"] = "true";
            _templateParams["%(OAuth2ClientId)"] = clientId;
            _templateParams["%(OAuth2ClientSecret)"] = clientSecret;
            _templateParams["%(OAuth2Realm)"] = realm;
            _templateParams["%(OAuth2AppName)"] = appName;
        }

Same methods

SwaggerUiConfig::EnableOAuth2Support ( string clientId, string realm, string appName ) : void