Documentation
¶
Index ¶
- Constants
- Variables
- func Attach(mux goahttp.Muxer, service *Service)
- func FormSignInRedirectURL(siteURL string) string
- func GetAPIKeyHash(key string) (string, error)
- type APIKeyScope
- type Auth
- type AuthConfigurations
- type ByKey
- type Service
- func (s *Service) APIKeyAuth(ctx context.Context, key string, schema *security.APIKeyScheme) (context.Context, error)
- func (s *Service) Callback(ctx context.Context, payload *gen.CallbackPayload) (res *gen.CallbackResult, err error)
- func (s *Service) Info(ctx context.Context, payload *gen.InfoPayload) (res *gen.InfoResult, err error)
- func (s *Service) Login(ctx context.Context, payload *gen.LoginPayload) (res *gen.LoginResult, err error)
- func (s *Service) Logout(ctx context.Context, payload *gen.LogoutPayload) (res *gen.LogoutResult, err error)
- func (s *Service) Register(ctx context.Context, payload *gen.RegisterPayload) (err error)
- func (s *Service) SwitchScopes(ctx context.Context, payload *gen.SwitchScopesPayload) (res *gen.SwitchScopesResult, err error)
Constants ¶
View Source
const APIKeyHeader = "Gram-Key"
View Source
const KeySecurityScheme = "apikey"
View Source
const ProjectHeader = "Gram-Project"
View Source
const ProjectSlugSecuritySchema = "project_slug"
View Source
const SessionCookie = "gram_session"
View Source
const SessionHeader = "Gram-Session"
View Source
const SessionSecurityScheme = "session"
Variables ¶
View Source
var APIKeyScopes = map[string]APIKeyScope{ "invalid": APIKeyScopeInvalid, "consumer": APIKeyScopeConsumer, "producer": APIKeyScopeProducer, }
Functions ¶
func FormSignInRedirectURL ¶
func GetAPIKeyHash ¶
Types ¶
type APIKeyScope ¶
type APIKeyScope int
const ( APIKeyScopeInvalid APIKeyScope = iota APIKeyScopeConsumer APIKeyScope = iota APIKeyScopeProducer APIKeyScope = iota )
func (APIKeyScope) String ¶
func (scope APIKeyScope) String() string
type AuthConfigurations ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service for gram dashboard authentication endpoints
func NewService ¶
func (*Service) APIKeyAuth ¶
func (*Service) Callback ¶
func (s *Service) Callback(ctx context.Context, payload *gen.CallbackPayload) (res *gen.CallbackResult, err error)
func (*Service) Info ¶
func (s *Service) Info(ctx context.Context, payload *gen.InfoPayload) (res *gen.InfoResult, err error)
func (*Service) Login ¶
func (s *Service) Login(ctx context.Context, payload *gen.LoginPayload) (res *gen.LoginResult, err error)
func (*Service) Logout ¶
func (s *Service) Logout(ctx context.Context, payload *gen.LogoutPayload) (res *gen.LogoutResult, err error)
func (*Service) SwitchScopes ¶
func (s *Service) SwitchScopes(ctx context.Context, payload *gen.SwitchScopesPayload) (res *gen.SwitchScopesResult, err error)
Click to show internal directories.
Click to hide internal directories.