· 6 years ago · Nov 27, 2018, 10:46 PM
1oauthProvider {
2 active = true
3 filterStartPosition = SecurityFilterPosition.EXCEPTION_TRANSLATION_FILTER.order
4
5 authorizationCode {
6 approvalParameterName = "user_oauth_approval"
7 }
8 tokenServices {
9 accessTokenValiditySeconds = 60 * 60 * 12 //default 12 hours
10 refreshTokenValiditySeconds = 60 * 10 //default 10 minutes
11 reuseRefreshToken = true
12 supportRefreshToken = true
13 }
14 authorizationEndpointUrl = "/oauth/authorize"
15 tokenEndpointUrl = "/oauth/token"
16 userApprovalEndpointUrl = "/oauth/confirm"
17
18 // Decides which grant types are enabled or not
19 grantTypes {
20 authorizationCode = true
21 implicit = true
22 refreshToken = true
23 clientCredentials = true
24 password = true
25 }
26 defaultClientConfig {
27 resourceIds = []
28 authorizedGrantTypes = ["authorization_code", "refresh_token"]
29 scope = []
30 registeredRedirectUri = null
31 authorities = []
32 }
33 clients = []
34}