package
0.1.0
Repository: https://github.com/bucku/forge-api-go-client.git
Documentation: pkg.go.dev

# Functions

NewInformationQuerier returns an Informational API accessor with default host and profilePath.
NewThreeLeggedClient returns a 3-legged authenticator with default host and authPath.
NewTwoLeggedClient returns a 2-legged authenticator with default host and authPath.

# Structs

AuthData reflects the data common to 2-legged and 3-legged api calls.
Bearer reflects the response when acquiring a 2-legged token or in 3-legged context for exchanging the authorization code for a token + refresh token and when exchanging the refresh token for a new token.
Information struct is holding the host and path used when making queries for profile of an authorizing end user in a 3-legged context.
ThreeLeggedAuth struct holds data necessary for making requests in 3-legged context.
TwoLeggedAuth struct holds data necessary for making requests in 2-legged context.
UserProfile reflects the response received when query the profile of an authorizing end user in a 3-legged context.

# Interfaces

ForgeAuthenticator defines an interface that allows abstraction from a 2-legged and a 3-legged context.
ThreeLeggedAuthenticator interface defines the method necessary to qualify as 3-legged authenticator.
TwoLeggedAuthenticator interface defines the method necessary to qualify as 2-legged authenticator.