Package com.adobe.granite.auth.oauth
Class ProviderConfigProperties
java.lang.Object
com.adobe.granite.auth.oauth.ProviderConfigProperties
Expose the list of well known configuration properties so that external services can find and
use existing configurations for additional oauth functionality that is NOT related
to Authentication.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final StringShould JCR users be created if they do not exist?static final StringIf new users are created, which groups should they be added to?static final StringURL configured with the OAuth providers to redirect the client back.static final StringThe OAuth "Consumer Key"static final StringThe OAuth "Consumer Secret"static final StringA unique ID to identify this configuration id.static final booleanstatic final booleanDefault value for AUTO_CREATE_USERS property is falsestatic final StringDefault value for CALLBACK_URL property is ""static final booleanDefault value for ENABLE_CSRF_STATE_PROTECTIONstatic final booleanDefault value for ENCODE_USER_IDS property is false;static final booleanDefault value for FORCE_STRICT_USERNAME_MATCHING property is false;static final booleanDefault value for HASH_USER_IDS property is false;static final booleanDefault value for PERSIST_ACCESS_TOKENstatic final booleanDefault value for PERSIST_ACCESS_TOKEN_COOKIEstatic final booleanDefault value for PERSIST_REQUEST_PARAM_CALLBACK_URLstatic final StringThe default behaviour is to use the user_id fieldstatic final StringEnable the Cross-Site Request Forgery state protection as per http://tools.ietf.org/html/draft-ietf-oauth-v2-31#section-10.12static final StringShould user ID be encoded?static final StringWhen usingConfigurationAdminto create configs, use this factoryPidstatic final StringSetting this to true will allow to have multiple users sharing the same oauthIdstatic final StringShould user ID be hashed?static final StringShould user's access token be stored in JCR with user profile? If true, the system can use the access token to execute actions on behalf of the user later.static final StringShould user's access token be stored in the cookie? If true, the system can use the access token to execute actions on behalf of the user later.static final StringShould the request parameters be persisted in the callback url ? This could be used to redirect the user to the original requested resourcestatic final StringThe unique ID of the configuredProviderimplementation to use.static final StringOAuth "Scope" parameterstatic final StringThe property to use as user ID when synchronizing users -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
FACTORY_PID
When usingConfigurationAdminto create configs, use this factoryPid- See Also:
-
CONFIG_ID
A unique ID to identify this configuration id. This ID will be passed to the authentication handler as a request parameter.- See Also:
-
CLIENT_ID
The OAuth "Consumer Key"- See Also:
-
CLIENT_SECRET
The OAuth "Consumer Secret"- See Also:
-
SCOPE
OAuth "Scope" parameter- See Also:
-
PROVIDER_ID
The unique ID of the configuredProviderimplementation to use.- See Also:
-
AUTO_CREATE_USERS
Should JCR users be created if they do not exist?- See Also:
-
DEFAULT_AUTO_CREATE_USERS
public static final boolean DEFAULT_AUTO_CREATE_USERSDefault value for AUTO_CREATE_USERS property is false- See Also:
-
AUTO_CREATE_USERS_GROUPS
If new users are created, which groups should they be added to?- See Also:
-
ENCODE_USER_IDS
Should user ID be encoded?- See Also:
-
DEFAULT_ENCODE_USER_IDS
public static final boolean DEFAULT_ENCODE_USER_IDSDefault value for ENCODE_USER_IDS property is false;- See Also:
-
HASH_USER_IDS
Should user ID be hashed?- See Also:
-
DEFAULT_HASH_USER_IDS
public static final boolean DEFAULT_HASH_USER_IDSDefault value for HASH_USER_IDS property is false;- See Also:
-
USER_ID_PROPERTY
The property to use as user ID when synchronizing users- See Also:
-
DEFAULT_USER_ID_PROPERTY
The default behaviour is to use the user_id field- See Also:
-
FORCE_STRICT_USERNAME_MATCHING
Setting this to true will allow to have multiple users sharing the same oauthId- See Also:
-
DEFAULT_FORCE_STRICT_USERNAME_MATCHING
public static final boolean DEFAULT_FORCE_STRICT_USERNAME_MATCHINGDefault value for FORCE_STRICT_USERNAME_MATCHING property is false;- See Also:
-
CALLBACK_URL
URL configured with the OAuth providers to redirect the client back.Use a relative url to use the host of the original request.
Leave empty to use the originally requested URL instead. Suffix "/callback/j_security_check" is automatically appended to this url.
Note: the domain for the callback must be \ registered at the provider side (e.g. Facebook or Twitter).- See Also:
-
DEFAULT_CALL_BACK_URL
Default value for CALLBACK_URL property is ""- See Also:
-
PERSIST_ACCESS_TOKEN
Should user's access token be stored in JCR with user profile? If true, the system can use the access token to execute actions on behalf of the user later.- See Also:
-
DEFAULT_PERSIST_ACCESS_TOKEN
public static final boolean DEFAULT_PERSIST_ACCESS_TOKENDefault value for PERSIST_ACCESS_TOKEN- See Also:
-
PERSIST_ACCESS_TOKEN_COOKIE
Should user's access token be stored in the cookie? If true, the system can use the access token to execute actions on behalf of the user later.- See Also:
-
DEFAULT_PERSIST_ACCESS_TOKEN_COOKIE
public static final boolean DEFAULT_PERSIST_ACCESS_TOKEN_COOKIEDefault value for PERSIST_ACCESS_TOKEN_COOKIE- See Also:
-
ENABLE_CSRF_STATE_PROTECTION
Enable the Cross-Site Request Forgery state protection as per http://tools.ietf.org/html/draft-ietf-oauth-v2-31#section-10.12- See Also:
-
DEFAULT_ENABLE_CSRF_STATE_PROTECTION
public static final boolean DEFAULT_ENABLE_CSRF_STATE_PROTECTIONDefault value for ENABLE_CSRF_STATE_PROTECTION- See Also:
-
PERSIST_REQUEST_PARAM_CALLBACK_URL
Should the request parameters be persisted in the callback url ? This could be used to redirect the user to the original requested resource- See Also:
-
DEFAULT_PERSIST_REQUEST_PARAM_CALLBACK_URL
public static final boolean DEFAULT_PERSIST_REQUEST_PARAM_CALLBACK_URLDefault value for PERSIST_REQUEST_PARAM_CALLBACK_URL- See Also:
-
ALLOW_SIBLING_CONFIGS
- See Also:
-
DEFAULT_ALLOW_SIBLING_CONFIGS
public static final boolean DEFAULT_ALLOW_SIBLING_CONFIGS- See Also:
-
-
Constructor Details
-
ProviderConfigProperties
public ProviderConfigProperties()
-