Documentation ¶
Index ¶
Constants ¶
View Source
const StepIDPropertiesRead = "read_properties"
View Source
const StepIDPropertiesWrite = "write_properties"
View Source
const StepIDRequestUsername = "request_username"
View Source
const StepIDUpdateAuthorization = "update_authorization"
Variables ¶
This section is empty.
Functions ¶
func CreateAuthFlow ¶
func CreateAuthFlow(options *Options) *accounts.AuthFlow[IntermediateState]
Types ¶
type IntermediateState ¶
type IntermediateState struct {
MinecraftAccountProperties *minecraftAccount.Properties // Properties of the Minecraft account.
}
type Options ¶
type Options struct {
UsernameRequestHandler UsernameRequestHandler
}
type PropertiesReadStep ¶
type PropertiesReadStep struct{}
func (*PropertiesReadStep) Authorize ¶
func (s *PropertiesReadStep) Authorize(state *accounts.FlowState[IntermediateState]) error
func (*PropertiesReadStep) ID ¶
func (s *PropertiesReadStep) ID() string
func (*PropertiesReadStep) Refresh ¶
func (s *PropertiesReadStep) Refresh(state *accounts.FlowState[IntermediateState]) error
type PropertiesWriteStep ¶
type PropertiesWriteStep struct{}
func (*PropertiesWriteStep) Authorize ¶
func (s *PropertiesWriteStep) Authorize(state *accounts.FlowState[IntermediateState]) error
func (*PropertiesWriteStep) ID ¶
func (s *PropertiesWriteStep) ID() string
func (*PropertiesWriteStep) Refresh ¶
func (s *PropertiesWriteStep) Refresh(state *accounts.FlowState[IntermediateState]) error
type RequestUsernameStep ¶
type RequestUsernameStep struct {
UsernameRequestHandler UsernameRequestHandler
}
func (*RequestUsernameStep) Authorize ¶
func (s *RequestUsernameStep) Authorize(state *accounts.FlowState[IntermediateState]) error
func (*RequestUsernameStep) ID ¶
func (s *RequestUsernameStep) ID() string
func (*RequestUsernameStep) Refresh ¶
func (s *RequestUsernameStep) Refresh(state *accounts.FlowState[IntermediateState]) error
type UpdateAuthorizationStep ¶
type UpdateAuthorizationStep struct{}
func (*UpdateAuthorizationStep) Authorize ¶
func (s *UpdateAuthorizationStep) Authorize(state *accounts.FlowState[IntermediateState]) error
func (*UpdateAuthorizationStep) ID ¶
func (s *UpdateAuthorizationStep) ID() string
func (*UpdateAuthorizationStep) Refresh ¶
func (s *UpdateAuthorizationStep) Refresh(state *accounts.FlowState[IntermediateState]) error
type UsernameRequestHandler ¶
Click to show internal directories.
Click to hide internal directories.