Package org.fhirfrog.frog.smart
Class StaticTokenProvider
java.lang.Object
org.fhirfrog.frog.smart.StaticTokenProvider
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObtain an access token, running whatever flow this strategy implements.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.fhirfrog.frog.smart.SmartAuthProvider
asRequestInterceptor
-
Constructor Details
-
StaticTokenProvider
-
-
Method Details
-
obtainAccessToken
Description copied from interface:SmartAuthProviderObtain an access token, running whatever flow this strategy implements.- Specified by:
obtainAccessTokenin interfaceSmartAuthProvider- Returns:
- the raw access token string (e.g. a JWT), suitable for use as
Authorization: Bearer <token>
-