auth

package
v0.0.0-...-2873e01 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 35 Imported by: 0

README

= Corteza auth

.Main responsibilities:
 - Sign-up protocol
 - Local login via OAuth2 protocol
 - Password set, reset protocol
 - Email authentication protocol
 - Session management
 - Identity federation (login via external providers)
 - Support OAuth2 flows

== Development

=== Templates

All (golang) templates can be found under `assets/templates`.
You can also find `scenarios.yaml` with list of all templates and scenaris with data that renders auth screens in all possible situations.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PublicAssets embed.FS
View Source
var Templates embed.FS

Functions

func EmbeddedTemplates

func EmbeddedTemplates(t *template.Template) (tpl *template.Template, err error)

EmbeddedTemplates returns embedded templates.

func New

func New(ctx context.Context, log *zap.Logger, oa2m oauth2def.Manager, s store.Storer, opt options.AuthOpt, defClient *types.AuthClient) (svc *service, err error)

New initializes Auth service that orchestrates session manager, oauth2 manager and http request handlers

func NewReloadableTemplates

func NewReloadableTemplates(base *template.Template, loader templateLoader) *templateReloader

func NewStaticTemplates

func NewStaticTemplates(base *template.Template, loader templateLoader) (s *templateStatic, err error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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