(Quick Reference)

6 Domain Class Properties - Reference Documentation

Authors: Brian Saville, Bobby Vandiver, Roy Willemse

Version: 3.0.0-RC2

6 Domain Class Properties

No default class name is assumed for the required domain classes. They must be specified in grails-app/conf/application.groovy. This is done automatically by the s2-init-oauth2-provider script. The following properties exist in the grails.plugin.springsecurity.oauthProvider namespace.

6.1 Client Class Properties

PropertyDefault ValueMeaning
clientLookup.classNamenullClient class name.
clientLookup.clientIdPropertyName'clientId'Client class client ID field.
clientLookup.clientSecretPropertyName'clientSecret'Client class client secret field.
clientLookup.accessTokenValiditySecondsPropertyName'accessTokenValiditySeconds'Client class access token validity length field.
clientLookup.refreshTokenValiditySecondsPropertyName'refreshTokenValiditySeconds'Client class refresh token validity length field.
clientLookup.authoritiesPropertyName'authorities'Client class authorities field.
clientLookup.authorizedGrantTypesPropertyName'authorizedGrantTypes'Client class authorized grant types field.
clientLookup.resourceIdsPropertyName'resourceIds'Client class allowed resource IDs field.
clientLookup.scopesPropertyName'scopes'Client class scopes field.
clientLookup.autoApproveScopesPropertyName'autoApproveScopes'Client class auto-approved scopes field. Including a value of true in the list will auto-approve all scopes for the configured client.
clientLookup.redirectUrisPropertyName'redirectUris'Client class redirect URIs field.
clientLookup.additionalInformationPropertyName'additionalInformation'Client class additional information field.

6.2 Access Token Class Properties

PropertyDefault ValueMeaning
accessTokenLookup.classNamenullAccess token class name.
accessTokenLookup.authenticationKeyPropertyName'authenticationKey'Access token class serialized authentication key used to locate tokens via serialized authentication field.
accessTokenLookup.authenticationPropertyName'authentication'Access token class serialized authentication field.
accessTokenLookup.usernamePropertyName'username'Access token class username field.
accessTokenLookup.clientIdPropertyName'clientId'Access token class client ID field.
accessTokenLookup.valuePropertyName'value'Access token class value field.
accessTokenLookup.tokenTypePropertyName'tokenType'Access token class token type field.
accessTokenLookup.expirationPropertyName'expiration'Access token class expiration field.
accessTokenLookup.refreshTokenPropertyName'refreshToken'Access token class refresh token value field.
accessTokenLookup.scopePropertyName'scope'Access token class scope field.
accessTokenLookup.additionalInformationPropertyName'additionalInformation'Access token class additional information field.

Currently only 'bearer' tokens are supported.

6.3 Refresh Token Class Properties

PropertyDefault ValueMeaning
refreshTokenLookup.classNamenullRefresh token class name.
refreshTokenLookup.authenticationPropertyName'authentication'Refresh token class serialized authentication field.
refreshTokenLookup.valuePropertyName'value'Refresh token class value field.
refreshTokenLookup.expirationPropertyName'expiration'Refresh

6.4 Authorization Code Class Properties

PropertyDefault ValueMeaning
authorizationCodeLookup.classNamenullAuthorization code class name.
authorizationCodeLookup.authenticationPropertyName'authentication'Authorization code class serialized authentication field.
authorizationCodeLookup.codePropertyName'code'Authorization code class code field.