Class StaticTokenProvider

java.lang.Object
org.fhirfrog.frog.smart.StaticTokenProvider
All Implemented Interfaces:
SmartAuthProvider

public final class StaticTokenProvider extends Object implements SmartAuthProvider
Trivial SmartAuthProvider wrapping a pre-obtained access token, for targets where the token is fetched out-of-band (e.g. a token pasted in from a manual browser login, or obtained by some other tool entirely outside fhir-frog).
  • Constructor Details

    • StaticTokenProvider

      public StaticTokenProvider(String token)
  • Method Details

    • obtainAccessToken

      public String obtainAccessToken()
      Description copied from interface: SmartAuthProvider
      Obtain an access token, running whatever flow this strategy implements.
      Specified by:
      obtainAccessToken in interface SmartAuthProvider
      Returns:
      the raw access token string (e.g. a JWT), suitable for use as Authorization: Bearer <token>