Welcome to cbSSO a ColdBox module to help integrate SSO into your application easily.
Bundled in this module are several SSO provider implementations that allow you to quickly and easily integrate with Identity Providers such as Microsoft, Google, GitHub or Facebook using standard protocols like SAML and oAuth.
To install run
box install cbsso
Once installed you can configure your settings like so
// config/modules/cbsso.cfc
component {
function configure(){
return {
"providers": [
{
type: "GoogleProvider@cbsso",
clientId: getJavaSystem().getProperty( "GOOGLE_CLIENT_ID" ),
clientSecret: getJavaSystem().getProperty( "GOOGLE_CLIENT_SECRET" )
}
]
};
}
}
Your app now has the ability to direct users to Google for authentication!
The Microsoft SAML provider stores outstanding authentication request IDs in a CacheBox cache. By default,
cbSSO creates an application cache named cbssoSAMLRequests with a 10-minute timeout and a maximum of 10,000
entries.
For a clustered deployment, register a distributed CacheBox cache and select it in the cbSSO module settings:
// config/CacheBox.cfc
component {
function configure(){
cacheBox = {
caches: {
samlRequests: {
provider: "your.distributed.CacheBoxProvider",
properties: {
// Provider-specific settings go here
}
}
}
};
}
}
// config/modules/cbsso.cfc
component {
function configure(){
return {
"samlRequestCacheName": "samlRequests",
"providers": [
// Provider configuration
]
};
}
}When samlRequestCacheName is set, the named cache must already be registered with CacheBox when cbSSO
activates; otherwise module activation fails rather than silently falling back to local memory.
For more complete documentation covering features and implementation check out our documentation site cbsso.ortusbooks.com.
ColdBox is a professional open-source project and it is completely funded by the community and Ortus Solutions, Corp. Ortus Patreons get many benefits like a cfcasts account, a FORGEBOX Pro account and so much more. If you are interested in becoming a sponsor, please visit our patronage page: https://patreon.com/ortussolutions
"I am the way, and the truth, and the life; no one comes to the Father, but by me (JESUS)" Jn 14:1-12