Categorygithub.com/oidc-mytoken/lib
modulepackage
0.7.1
Repository: https://github.com/oidc-mytoken/lib.git
Documentation: pkg.go.dev

# README

mytoken logo

License GitHub go.mod Go version Go Report DeepSource Release date Release version

mytokenlib

mytokenlib is a go library for communicating with a mytoken server. mytoken is a central web service with the goal to easily obtain OpenID Connect access tokens across devices.

A mytoken command line client can be found at https://github.com/oidc-mytoken/client.

The mytoken server can be found at https://github.com/oidc-mytoken/server.

A demo instance of mytoken is running at https://mytoken.data.kit.edu/.

# Functions

NewAccessTokenRequest creates a new api.AccessTokenRequest with the passed arguments.
NewMytokenServer creates a new MytokenServer.
SetClient sets the http.Client used to make API requests.
SetContext sets a context.Context used for all API requests.

# Constants

ContextKeyUserAgent is used to set a useragent string in the context.

# Structs

AccessTokenEndpoint is type representing a mytoken server's Access Token Endpoint and the actions that can be performed there.
GrantsEndpoint is type representing a mytoken server's grants Endpoint and the actions that can be performed there.
MytokenEndpoint is type representing a mytoken server's Mytoken Endpoint and the actions that can be performed there.
MytokenError is a error type from the mytoken library.
MytokenServer is a type describing a mytoken server instance.
PollingCallbacks is a struct holding callback related to the polling in the authorization code flow.
RevocationEndpoint is type representing a mytoken server's Revocation Endpoint and the actions that can be performed there.
SSHGrantEndpoint is type representing a mytoken server's ssh grant Endpoint and the actions that can be performed there.
TokeninfoEndpoint is type representing a mytoken server's Revocation Endpoint and the actions that can be performed there.
TransferEndpoint is type representing a mytoken server's Token Transfer Endpoint and the actions that can be performed there.
UserSettingsEndpoint is type representing a mytoken server's User Settings Endpoint and the actions that can be performed there.

# Interfaces

Endpoint is an interface for mytoken endpoints.