Class/Object

securesocial.core.providers

ConcurProvider

Related Docs: object ConcurProvider | package providers

Permalink

class ConcurProvider extends Base

A Concur OAuth2 Provider

For the documentation of Concur’s OAuth2 implementation please refer to https://developer.concur.com/api-documentation/oauth-20-0/web-flow

Unfortunately, Concur does not implement the exact OAuth2 specification. It differs in two main points:

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ConcurProvider
  2. Base
  3. OAuth2Provider
  4. ApiSupport
  5. IdentityProvider
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ConcurProvider(routesService: RoutesService, cacheService: CacheService, client: OAuth2Client)(implicit configuration: Configuration, playEnv: Environment)

    Permalink

Type Members

  1. case class LoginJson(email: String, info: OAuth2Info) extends Product with Serializable

    Permalink

    Defines the request format for api authentication requests

    Defines the request format for api authentication requests

    email

    the user email

    info

    the OAuth2Info as returned by some Oauth2 service on the client side (eg: JS app)

    Definition Classes
    OAuth2Provider

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. implicit val LoginJsonReads: Reads[LoginJson]

    Permalink

    A Reads instance for the LoginJson case class

    A Reads instance for the LoginJson case class

    Definition Classes
    OAuth2Provider
  5. implicit val OAuth2InfoReads: Reads[OAuth2Info]

    Permalink

    A Reads instance for the OAuth2Info case class

    A Reads instance for the OAuth2Info case class

    Definition Classes
    OAuth2Provider
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def authMethod: AuthenticationMethod

    Permalink

    Subclasses need to implement this to specify the authentication method

    Subclasses need to implement this to specify the authentication method

    Definition Classes
    OAuth2ProviderIdentityProvider
  8. def authenticate()(implicit request: Request[AnyContent]): Future[AuthenticationResult]

    Permalink

    Authenticates the user and fills the profile information.

    Authenticates the user and fills the profile information.

    request

    the current request

    returns

    a future AuthenticationResult

    Definition Classes
    OAuth2ProviderIdentityProvider
  9. def authenticateForApi(implicit request: Request[AnyContent]): Future[AuthenticationResult]

    Permalink

    Authenticates a user

    Authenticates a user

    Definition Classes
    OAuth2ProviderApiSupport
  10. def buildInfo(response: WSResponse): OAuth2Info

    Permalink

    Concur does not return a JSON structure, but uses an XML structure.

    Concur does not return a JSON structure, but uses an XML structure.

    Definition Classes
    ConcurProviderOAuth2Provider
  11. val cacheService: CacheService

    Permalink
    Definition Classes
    BaseOAuth2Provider
  12. val client: OAuth2Client

    Permalink
    Definition Classes
    BaseOAuth2Provider
  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. implicit val configuration: Configuration

    Permalink
    Definition Classes
    ConcurProviderIdentityProvider
  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  17. implicit val executionContext: ExecutionContext

    Permalink
    Attributes
    protected
    Definition Classes
    BaseOAuth2Provider
  18. def fillProfile(info: OAuth2Info): Future[BasicProfile]

    Permalink
    Definition Classes
    ConcurProviderOAuth2Provider
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def getAccessToken[A](code: String)(implicit request: Request[A]): Future[OAuth2Info]

    Permalink

    Unfortunately, Concur does not stick to the OAuth2 spec saying that a HTTP POST must be used to get the access token.

    Unfortunately, Concur does not stick to the OAuth2 spec saying that a HTTP POST must be used to get the access token. Instead, a HTTP GET is used in their implementation.

    Definition Classes
    ConcurProviderOAuth2Provider
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  23. val id: String

    Permalink

    The id for this provider.

    The id for this provider.

    Definition Classes
    ConcurProviderIdentityProvider
  24. implicit val identityProviderConfigurations: Default

    Permalink
    Attributes
    protected
    Definition Classes
    BaseIdentityProvider
  25. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  26. def loadProperty(providerId: String, property: String, optional: Boolean = false): Option[String]

    Permalink

    Reads a property from the application.conf

    Reads a property from the application.conf

    Definition Classes
    IdentityProvider
  27. val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    OAuth2Provider
  28. val malformedJson: String

    Permalink

    The error returned for malformed requests

    The error returned for malformed requests

    Definition Classes
    OAuth2Provider
  29. def maskSensitiveInformation(node: Node): Node

    Permalink

    Masks sensitive information so that it doesn't end up in the logs.

  30. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  31. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. implicit val playEnv: Environment

    Permalink
    Definition Classes
    ConcurProviderBase
  34. val routesService: RoutesService

    Permalink
    Definition Classes
    BaseOAuth2Provider
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  36. def throwMissingPropertiesException(id: String): Unit

    Permalink
    Definition Classes
    IdentityProvider
  37. def toString(): String

    Permalink

    Returns the provider name

    Returns the provider name

    Definition Classes
    IdentityProvider → AnyRef → Any
  38. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Base

Inherited from OAuth2Provider

Inherited from ApiSupport

Inherited from IdentityProvider

Inherited from AnyRef

Inherited from Any

Ungrouped