authflow

package
v0.0.0-...-f1100e8 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 8 Imported by: 0

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 (*PropertiesReadStep) ID

func (s *PropertiesReadStep) ID() string

func (*PropertiesReadStep) Refresh

type PropertiesWriteStep

type PropertiesWriteStep struct{}

func (*PropertiesWriteStep) Authorize

func (*PropertiesWriteStep) ID

func (s *PropertiesWriteStep) ID() string

func (*PropertiesWriteStep) Refresh

type RequestUsernameStep

type RequestUsernameStep struct {
	UsernameRequestHandler UsernameRequestHandler
}

func (*RequestUsernameStep) Authorize

func (*RequestUsernameStep) ID

func (s *RequestUsernameStep) ID() string

func (*RequestUsernameStep) Refresh

type UpdateAuthorizationStep

type UpdateAuthorizationStep struct{}

func (*UpdateAuthorizationStep) Authorize

func (*UpdateAuthorizationStep) ID

func (*UpdateAuthorizationStep) Refresh

type UsernameRequestHandler

type UsernameRequestHandler func() (string, error)

Jump to

Keyboard shortcuts

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