scalaoauth2.provider.OAuth2ProviderActionBuilders.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of play2-oauth2-provider_2.13 Show documentation
Show all versions of play2-oauth2-provider_2.13 Show documentation
Support scala-oauth2-core library on Play Framework Scala
The newest version!
package scalaoauth2.provider
import play.api.mvc.{ActionBuilder, AnyContent, BaseController}
trait OAuth2ProviderActionBuilders {
self: BaseController =>
def AuthorizedAction[U](
handler: ProtectedResourceHandler[U]
): ActionBuilder[({ type L[A] = AuthInfoRequest[A, U] })#L, AnyContent] = {
AuthorizedActionFunction(handler)(
self.defaultExecutionContext
) compose Action
}
}