Documentation ¶
Index ¶
- Constants
- Variables
- func ByName(names ...string) url.Values
- func ByType(types ...vocab.ActivityVocabularyType) url.Values
- func ByURL(urls ...vocab.IRI) url.Values
- func IRIWithFilters(iri vocab.IRI, searchParams ...url.Values) vocab.IRI
- func IndieAuthClientActor(author vocab.Item, url *url.URL) *vocab.Actor
- func SearchActorsIRI(baseIRI vocab.IRI, searchParams ...url.Values) vocab.IRI
- type ClientLister
- type ClientSaver
- type FullStorage
- type OAuth
- type PasswordChanger
- type Service
- func (s *Service) Authorize(w http.ResponseWriter, r *http.Request)
- func (s *Service) HandleChangePw(w http.ResponseWriter, r *http.Request)
- func (s *Service) HandleError(e error) http.HandlerFunc
- func (s Service) IsValidRequest(r *http.Request) bool
- func (s *Service) ShowChangePw(w http.ResponseWriter, r *http.Request)
- func (s *Service) Token(w http.ResponseWriter, r *http.Request)
- func (s Service) ValidateClient(r *http.Request) (*vocab.Actor, error)
Constants ¶
View Source
const (
ID osin.AuthorizeRequestType = "id"
)
Variables ¶
View Source
var AnonymousAcct = account{ // contains filtered or unexported fields }
Functions ¶
Types ¶
type ClientLister ¶
type ClientSaver ¶
type ClientSaver interface { // UpdateClient updates the client (identified by it's id) and replaces the values with the values of client. UpdateClient(c osin.Client) error // CreateClient stores the client in the database and returns an error, if something went wrong. CreateClient(c osin.Client) error // RemoveClient removes a client (identified by id) from the database. Returns an error if something went wrong. RemoveClient(id string) error }
type FullStorage ¶
type FullStorage interface { ClientSaver ClientLister osin.Storage processing.Store processing.KeyLoader PasswordChanger }
type PasswordChanger ¶
type Service ¶
type Service struct { Stores []FullStorage Client client.Basic Logger lw.Logger }
func (*Service) HandleChangePw ¶
func (s *Service) HandleChangePw(w http.ResponseWriter, r *http.Request)
HandleChangePw
func (*Service) HandleError ¶
func (s *Service) HandleError(e error) http.HandlerFunc
func (*Service) ShowChangePw ¶
func (s *Service) ShowChangePw(w http.ResponseWriter, r *http.Request)
ShowChangePw
Click to show internal directories.
Click to hide internal directories.