Documentation ¶
Index ¶
- Constants
- func NewLocalClient(devMode bool, clientDomain string) op.Client
- type Client
- func (c *Client) AccessTokenType() op.AccessTokenType
- func (c *Client) ApplicationType() op.ApplicationType
- func (c *Client) AuthMethod() oidc.AuthMethod
- func (c *Client) ClockSkew() time.Duration
- func (c *Client) DevMode() bool
- func (c *Client) GetID() string
- func (c *Client) GrantTypes() []oidc.GrantType
- func (c *Client) IDTokenLifetime() time.Duration
- func (c *Client) IDTokenUserinfoClaimsAssertion() bool
- func (c *Client) IsScopeAllowed(scope string) bool
- func (c *Client) LoginURL(id string) string
- func (c *Client) PostLogoutRedirectURIs() []string
- func (c *Client) RedirectURIs() []string
- func (c *Client) ResponseTypes() []oidc.ResponseType
- func (c *Client) RestrictAdditionalAccessTokenScopes() func(scopes []string) []string
- func (c *Client) RestrictAdditionalIdTokenScopes() func(scopes []string) []string
- type Request
- func (a *Request) AuthorizedAt() *time.Time
- func (a *Request) Complete(sub string)
- func (a *Request) CreatedAt() time.Time
- func (a *Request) Done() bool
- func (a *Request) GetACR() string
- func (a *Request) GetAMR() []string
- func (a *Request) GetAudience() []string
- func (a *Request) GetAuthTime() time.Time
- func (a *Request) GetClientID() string
- func (a *Request) GetCode() string
- func (a *Request) GetCodeChallenge() *oidc.CodeChallenge
- func (a *Request) GetID() string
- func (a *Request) GetNonce() string
- func (a *Request) GetRedirectURI() string
- func (a *Request) GetResponseMode() oidc.ResponseMode
- func (a *Request) GetResponseType() oidc.ResponseType
- func (a *Request) GetScopes() []string
- func (a *Request) GetState() string
- func (a *Request) GetSubject() string
- func (a *Request) ID() id.AuthRequestID
- func (a *Request) SetAuthorizedAt(authorizedAt *time.Time)
- func (a *Request) SetCode(code string)
- func (a *Request) SetCreatedAt(createdAt time.Time)
- func (a *Request) SetCurrentScopes(scopes []string)
- type RequestBuilder
- func (b *RequestBuilder) Audiences(audiences []string) *RequestBuilder
- func (b *RequestBuilder) AuthorizedAt(authorizedAt *time.Time) *RequestBuilder
- func (b *RequestBuilder) Build() (*Request, error)
- func (b *RequestBuilder) ClientID(id string) *RequestBuilder
- func (b *RequestBuilder) Code(code string) *RequestBuilder
- func (b *RequestBuilder) CodeChallenge(CodeChallenge *oidc.CodeChallenge) *RequestBuilder
- func (b *RequestBuilder) CreatedAt(createdAt time.Time) *RequestBuilder
- func (b *RequestBuilder) ID(id id.AuthRequestID) *RequestBuilder
- func (b *RequestBuilder) MustBuild() *Request
- func (b *RequestBuilder) NewID() *RequestBuilder
- func (b *RequestBuilder) Nonce(nonce string) *RequestBuilder
- func (b *RequestBuilder) RedirectURI(redirectURI string) *RequestBuilder
- func (b *RequestBuilder) ResponseType(rt oidc.ResponseType) *RequestBuilder
- func (b *RequestBuilder) Scopes(scopes []string) *RequestBuilder
- func (b *RequestBuilder) State(state string) *RequestBuilder
- func (b *RequestBuilder) Subject(subject string) *RequestBuilder
Constants ¶
View Source
const ClientID = "reearth-authsrv-client-default"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AccessTokenType ¶
func (c *Client) AccessTokenType() op.AccessTokenType
func (*Client) ApplicationType ¶
func (c *Client) ApplicationType() op.ApplicationType
func (*Client) AuthMethod ¶
func (c *Client) AuthMethod() oidc.AuthMethod
func (*Client) GrantTypes ¶
func (*Client) IDTokenLifetime ¶
func (*Client) IDTokenUserinfoClaimsAssertion ¶
func (*Client) IsScopeAllowed ¶
func (*Client) PostLogoutRedirectURIs ¶
func (*Client) RedirectURIs ¶
func (*Client) ResponseTypes ¶
func (c *Client) ResponseTypes() []oidc.ResponseType
func (*Client) RestrictAdditionalAccessTokenScopes ¶
func (*Client) RestrictAdditionalIdTokenScopes ¶
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func (*Request) AuthorizedAt ¶
func (*Request) GetAudience ¶
func (*Request) GetAuthTime ¶
func (*Request) GetClientID ¶
func (*Request) GetCodeChallenge ¶
func (a *Request) GetCodeChallenge() *oidc.CodeChallenge
func (*Request) GetRedirectURI ¶
func (*Request) GetResponseMode ¶
func (a *Request) GetResponseMode() oidc.ResponseMode
func (*Request) GetResponseType ¶
func (a *Request) GetResponseType() oidc.ResponseType
func (*Request) GetSubject ¶
func (*Request) ID ¶
func (a *Request) ID() id.AuthRequestID
func (*Request) SetAuthorizedAt ¶
func (*Request) SetCreatedAt ¶
func (*Request) SetCurrentScopes ¶
type RequestBuilder ¶
type RequestBuilder struct {
// contains filtered or unexported fields
}
func NewRequest ¶
func NewRequest() *RequestBuilder
func (*RequestBuilder) Audiences ¶
func (b *RequestBuilder) Audiences(audiences []string) *RequestBuilder
func (*RequestBuilder) AuthorizedAt ¶
func (b *RequestBuilder) AuthorizedAt(authorizedAt *time.Time) *RequestBuilder
func (*RequestBuilder) Build ¶
func (b *RequestBuilder) Build() (*Request, error)
func (*RequestBuilder) ClientID ¶
func (b *RequestBuilder) ClientID(id string) *RequestBuilder
func (*RequestBuilder) Code ¶
func (b *RequestBuilder) Code(code string) *RequestBuilder
func (*RequestBuilder) CodeChallenge ¶
func (b *RequestBuilder) CodeChallenge(CodeChallenge *oidc.CodeChallenge) *RequestBuilder
func (*RequestBuilder) CreatedAt ¶
func (b *RequestBuilder) CreatedAt(createdAt time.Time) *RequestBuilder
func (*RequestBuilder) ID ¶
func (b *RequestBuilder) ID(id id.AuthRequestID) *RequestBuilder
func (*RequestBuilder) MustBuild ¶
func (b *RequestBuilder) MustBuild() *Request
func (*RequestBuilder) NewID ¶
func (b *RequestBuilder) NewID() *RequestBuilder
func (*RequestBuilder) Nonce ¶
func (b *RequestBuilder) Nonce(nonce string) *RequestBuilder
func (*RequestBuilder) RedirectURI ¶
func (b *RequestBuilder) RedirectURI(redirectURI string) *RequestBuilder
func (*RequestBuilder) ResponseType ¶
func (b *RequestBuilder) ResponseType(rt oidc.ResponseType) *RequestBuilder
func (*RequestBuilder) Scopes ¶
func (b *RequestBuilder) Scopes(scopes []string) *RequestBuilder
func (*RequestBuilder) State ¶
func (b *RequestBuilder) State(state string) *RequestBuilder
func (*RequestBuilder) Subject ¶
func (b *RequestBuilder) Subject(subject string) *RequestBuilder
Click to show internal directories.
Click to hide internal directories.