Interface OAuth20UserProfileDataCreator

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface OAuth20UserProfileDataCreator
Strategy interface that acts as factory to handle creation of un-typed user profile data which then could be transformed into whatever representation necessary by upstream components.
Since:
5.3.0
  • Method Summary

    Modifier and Type
    Method
    Description
    createFrom(OAuth20AccessToken accessToken, org.pac4j.core.context.WebContext context)
    Create internal user profile data.
  • Method Details

    • createFrom

      Map<String,Object> createFrom(OAuth20AccessToken accessToken, org.pac4j.core.context.WebContext context) throws Throwable
      Create internal user profile data.
      Parameters:
      accessToken - oauth access token
      context - request context
      Returns:
      Map representing profile data
      Throws:
      Throwable - the throwable