auth

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ClientID = "reearth-authsrv-client-default"

Variables

This section is empty.

Functions

func NewLocalClient

func NewLocalClient(devMode bool, clientDomain string) op.Client

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) ClockSkew

func (c *Client) ClockSkew() time.Duration

func (*Client) DevMode

func (c *Client) DevMode() bool

func (*Client) GetID

func (c *Client) GetID() string

func (*Client) GrantTypes

func (c *Client) GrantTypes() []oidc.GrantType

func (*Client) IDTokenLifetime

func (c *Client) IDTokenLifetime() time.Duration

func (*Client) IDTokenUserinfoClaimsAssertion

func (c *Client) IDTokenUserinfoClaimsAssertion() bool

func (*Client) IsScopeAllowed

func (c *Client) IsScopeAllowed(scope string) bool

func (*Client) LoginURL

func (c *Client) LoginURL(id string) string

func (*Client) PostLogoutRedirectURIs

func (c *Client) PostLogoutRedirectURIs() []string

func (*Client) RedirectURIs

func (c *Client) RedirectURIs() []string

func (*Client) ResponseTypes

func (c *Client) ResponseTypes() []oidc.ResponseType

func (*Client) RestrictAdditionalAccessTokenScopes

func (c *Client) RestrictAdditionalAccessTokenScopes() func(scopes []string) []string

func (*Client) RestrictAdditionalIdTokenScopes

func (c *Client) RestrictAdditionalIdTokenScopes() func(scopes []string) []string

type Request

type Request struct {
	// contains filtered or unexported fields
}

func (*Request) AuthorizedAt

func (a *Request) AuthorizedAt() *time.Time

func (*Request) Complete

func (a *Request) Complete(sub string)

func (*Request) CreatedAt

func (a *Request) CreatedAt() time.Time

func (*Request) Done

func (a *Request) Done() bool

func (*Request) GetACR

func (a *Request) GetACR() string

func (*Request) GetAMR

func (a *Request) GetAMR() []string

func (*Request) GetAudience

func (a *Request) GetAudience() []string

func (*Request) GetAuthTime

func (a *Request) GetAuthTime() time.Time

func (*Request) GetClientID

func (a *Request) GetClientID() string

func (*Request) GetCode

func (a *Request) GetCode() string

func (*Request) GetCodeChallenge

func (a *Request) GetCodeChallenge() *oidc.CodeChallenge

func (*Request) GetID

func (a *Request) GetID() string

func (*Request) GetNonce

func (a *Request) GetNonce() string

func (*Request) GetRedirectURI

func (a *Request) GetRedirectURI() string

func (*Request) GetResponseMode

func (a *Request) GetResponseMode() oidc.ResponseMode

func (*Request) GetResponseType

func (a *Request) GetResponseType() oidc.ResponseType

func (*Request) GetScopes

func (a *Request) GetScopes() []string

func (*Request) GetState

func (a *Request) GetState() string

func (*Request) GetSubject

func (a *Request) GetSubject() string

func (*Request) ID

func (a *Request) ID() id.AuthRequestID

func (*Request) SetAuthorizedAt

func (a *Request) SetAuthorizedAt(authorizedAt *time.Time)

func (*Request) SetCode

func (a *Request) SetCode(code string)

func (*Request) SetCreatedAt

func (a *Request) SetCreatedAt(createdAt time.Time)

func (*Request) SetCurrentScopes

func (a *Request) SetCurrentScopes(scopes []string)

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 (*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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL