class CasProvider extends BaseCasProvider with CommonSocialProfileBuilder
The CAS provider.
- Alphabetic
- By Inheritance
- CasProvider
- CommonSocialProfileBuilder
- BaseCasProvider
- Logger
- CasProviderConstants
- SocialProvider
- ExecutionContextProvider
- SocialProfileBuilder
- Provider
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new CasProvider(httpLayer: HTTPLayer, settings: CasSettings, client: CasClient)
- httpLayer
The HTTP layer implementation.
- settings
The CAS provider settings.
- client
The CAS client implementation.
Type Members
- type A = CasInfo
The type of the auth info.
The type of the auth info.
- Definition Classes
- BaseCasProvider → SocialProvider
- type Content = AttributePrincipal
The content type to parse a profile from.
The content type to parse a profile from.
- Definition Classes
- BaseCasProvider → SocialProfileBuilder
- type Profile = CommonSocialProfile
- Definition Classes
- CommonSocialProfileBuilder
- type Self = CasProvider
The type of this class.
The type of this class.
- Definition Classes
- CasProvider → SocialProvider
- type Settings = CasSettings
The settings type.
The settings type.
- Definition Classes
- BaseCasProvider → SocialProvider
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val Email: String
- Definition Classes
- CasProviderConstants
- val FirstName: String
- Definition Classes
- CasProviderConstants
- val ID: String
- Definition Classes
- CasProviderConstants
- val LastName: String
- Definition Classes
- CasProviderConstants
- val PictureURL: String
- Definition Classes
- CasProviderConstants
- val UserName: String
- Definition Classes
- CasProviderConstants
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def authenticate[B]()(implicit request: ExtractableRequest[B]): Future[Either[Result, CasInfo]]
Starts the authentication process.
Starts the authentication process.
- B
The type of the request body.
- request
The current request.
- returns
Either a Result or the auth info from the provider.
- Definition Classes
- BaseCasProvider → SocialProvider
- def buildProfile(authInfo: CasInfo): Future[Profile]
Populate the profile information from the service provider.
Populate the profile information from the service provider.
- authInfo
The auth info received from the provider.
- returns
On success the build social profile, otherwise a failure.
- Attributes
- protected
- Definition Classes
- BaseCasProvider → SocialProfileBuilder
- val client: CasClient
The CAS client instance.
The CAS client instance.
- Definition Classes
- CasProvider → BaseCasProvider
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- implicit val executionContext: ExecutionContext
- Definition Classes
- SocialProvider → ExecutionContextProvider
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val httpLayer: HTTPLayer
- Attributes
- protected
- Definition Classes
- CasProvider → SocialProvider
- val id: String
The provider ID.
The provider ID.
- Definition Classes
- BaseCasProvider → Provider
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val logger: Logger
- Definition Classes
- Logger
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val profileParser: CasProfileParser
The profile parser implementation.
The profile parser implementation.
- Definition Classes
- CasProvider → SocialProfileBuilder
- def resolveCallbackURL(url: String)(implicit request: RequestHeader): String
- Attributes
- protected
- Definition Classes
- SocialProvider
- def retrieveProfile(authInfo: A): Future[Profile]
- Definition Classes
- SocialProvider
- val settings: CasSettings
- Definition Classes
- CasProvider → SocialProvider
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- val urls: Map[String, String]
Defines the URLs that are needed to retrieve the profile data.
Defines the URLs that are needed to retrieve the profile data.
Since profile retrieval is internal to the Jasig CAS implementation, we don't need any further URLs ourselves.
- Attributes
- protected
- Definition Classes
- BaseCasProvider → SocialProfileBuilder
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withSettings(f: (Settings) => Settings): CasProvider
Gets a provider initialized with a new settings object.
Gets a provider initialized with a new settings object.
- f
A function which gets the settings passed and returns different settings.
- returns
An instance of the provider initialized with new settings.
- Definition Classes
- CasProvider → SocialProvider