Package org.springdoc.core.properties
Class SwaggerUiOAuthProperties
java.lang.Object
org.springdoc.core.properties.SwaggerUiOAuthProperties
@Lazy(false)
@Configuration(proxyBeanMethods=false)
@ConfigurationProperties(prefix="springdoc.swagger-ui.oauth")
@ConditionalOnProperty(name="springdoc.swagger-ui.enabled",
matchIfMissing=true)
@ConditionalOnBean(SpringDocConfiguration.class)
public class SwaggerUiOAuthProperties
extends Object
Please refer to the swagger
configuration.md
to get the idea what each parameter does.
- Author:
- bnasslahsen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets additional query string params.Gets app name.Gets client id.Gets client secret.Gets config parameters.getRealm()Gets realm.Get the pre-selected scopes during authentication.Gets scope separator.Gets use basic authentication with access code grant.Gets use pkce with authorization code grant.voidsetAdditionalQueryStringParams(Map<String, String> additionalQueryStringParams) Sets additional query string params.voidsetAppName(String appName) Sets app name.voidsetClientId(String clientId) Sets client id.voidsetClientSecret(String clientSecret) Sets client secret.voidSets realm.voidSets the pre-selected scopes during authentication.voidsetScopeSeparator(String scopeSeparator) Sets scope separator.voidsetUseBasicAuthenticationWithAccessCodeGrant(String useBasicAuthenticationWithAccessCodeGrant) Sets use basic authentication with access code grant.voidsetUsePkceWithAuthorizationCodeGrant(Boolean usePkceWithAuthorizationCodeGrant) Sets use pkce with authorization code grant.
-
Constructor Details
-
SwaggerUiOAuthProperties
public SwaggerUiOAuthProperties()
-
-
Method Details
-
getConfigParameters
Gets config parameters.- Returns:
- the config parameters
-
getClientId
Gets client id.- Returns:
- the client id
-
setClientId
Sets client id.- Parameters:
clientId- the client id
-
getClientSecret
Gets client secret.- Returns:
- the client secret
-
setClientSecret
Sets client secret.- Parameters:
clientSecret- the client secret
-
getRealm
Gets realm.- Returns:
- the realm
-
setRealm
Sets realm.- Parameters:
realm- the realm
-
getAppName
Gets app name.- Returns:
- the app name
-
setAppName
Sets app name.- Parameters:
appName- the app name
-
getScopeSeparator
Gets scope separator.- Returns:
- the scope separator
-
setScopeSeparator
Sets scope separator.- Parameters:
scopeSeparator- the scope separator
-
getAdditionalQueryStringParams
Gets additional query string params.- Returns:
- the additional query string params
-
setAdditionalQueryStringParams
Sets additional query string params.- Parameters:
additionalQueryStringParams- the additional query string params
-
getUseBasicAuthenticationWithAccessCodeGrant
Gets use basic authentication with access code grant.- Returns:
- the use basic authentication with access code grant
-
setUseBasicAuthenticationWithAccessCodeGrant
public void setUseBasicAuthenticationWithAccessCodeGrant(String useBasicAuthenticationWithAccessCodeGrant) Sets use basic authentication with access code grant.- Parameters:
useBasicAuthenticationWithAccessCodeGrant- the use basic authentication with access code grant
-
getUsePkceWithAuthorizationCodeGrant
Gets use pkce with authorization code grant.- Returns:
- the use pkce with authorization code grant
-
setUsePkceWithAuthorizationCodeGrant
Sets use pkce with authorization code grant.- Parameters:
usePkceWithAuthorizationCodeGrant- the use pkce with authorization code grant
-
getScopes
Get the pre-selected scopes during authentication.- Returns:
- the pre-selected scopes during authentication
-
setScopes
Sets the pre-selected scopes during authentication.- Parameters:
scopes- the pre-selected scopes during authentication
-