Versions in this module Expand all Collapse all v0 v0.0.2 Mar 5, 2025 Changes in this version + func PdsDpopJwt(method, url, iss, accessToken, nonce string, privateJwk jwk.Key) (string, error) + type Client struct + func NewClient(args ClientArgs) (*Client, error) + func (c *Client) AuthServerDpopJwt(method, url, nonce string, privateJwk jwk.Key) (string, error) + func (c *Client) ClientAssertionJwt(authServerUrl string) (string, error) + func (c *Client) FetchAuthServerMetadata(ctx context.Context, ustr string) (*OauthAuthorizationMetadata, error) + func (c *Client) InitialTokenRequest(ctx context.Context, ...) (*TokenResponse, error) + func (c *Client) RefreshTokenRequest(ctx context.Context, refreshToken, authserverIss, dpopAuthserverNonce string, ...) (*TokenResponse, error) + func (c *Client) ResolvePdsAuthServer(ctx context.Context, ustr string) (string, error) + func (c *Client) SendParAuthRequest(ctx context.Context, authServerUrl string, ...) (*SendParAuthResponse, error) + type ClientArgs struct + ClientId string + ClientJwk jwk.Key + Http *http.Client + RedirectUri string + type OauthAuthorizationMetadata struct + AuthorizationEndpoint string + AuthorizationResponseISSParameterSupported bool + ClientIDMetadataDocumentSupported bool + CodeChallengeMethodsSupported []string + DisplayValuesSupported []string + DpopSigningAlgValuesSupported []string + GrantTypesSupported []string + IntrospectionEndpoint string + Issuer string + JwksUri string + ProtectedResources []string + PushedAuthorizationRequestEndpoint string + RequestObjectEncryptionAlgValuesSupported []string + RequestObjectEncryptionEncValuesSupported []string + RequestObjectSigningAlgValuesSupported []string + RequestParameterSupported bool + RequestUriParameterSupported bool + RequirePushedAuthorizationRequests bool + RequireRequestUriRegistration *bool + ResponseModesSupported []string + ResponseTypesSupported []string + RevocationEndpoint string + ScopesSupported []string + SubjectTypesSupported []string + TokenEndpoint string + TokenEndpointAuthMethodsSupported []string + TokenEndpointAuthSigningAlgValuesSupported []string + UILocalesSupported []string + func (oam *OauthAuthorizationMetadata) UnmarshalJSON(b []byte) error + func (oam *OauthAuthorizationMetadata) Validate(fetch_url *url.URL) error + type OauthProtectedResource struct + AuthorizationServers []string + BearerMethodsSupported []string + Resource string + ResourceDocumentation string + ScopesSupported []string + func (opr *OauthProtectedResource) UnmarshalJSON(b []byte) error + type RefreshTokenArgs struct + AuthserverUrl string + DpopAuthserverNonce string + DpopPrivateJwk string + RefreshToken string + type SendParAuthResponse struct + DpopAuthserverNonce string + ExpiresIn float64 + PkceVerifier string + RequestUri string + State string + type TokenResponse struct + AccessToken string + DpopAuthserverNonce string + ExpiresIn int + RefreshToken string + Scope string + Sub string + TokenType string + type XrpcAuthedRequestArgs struct + AccessToken string + Did string + DpopPdsNonce string + DpopPrivateJwk jwk.Key + Issuer string + PdsUrl string + type XrpcClient struct + Client *http.Client + Headers map[string]string + OnDpopPdsNonceChanged func(did, newNonce string) + UserAgent *string + func (c *XrpcClient) Do(ctx context.Context, authedArgs *XrpcAuthedRequestArgs, ...) error v0.0.1 Mar 3, 2025