Documentation ¶
Index ¶
- type Option
- type Provider
- func (p *Provider) AuthCodeURL(state string) string
- func (p *Provider) Exchange(ctx context.Context, code string, opts ...oauth2.AuthCodeOption) (*oauth2.Token, error)
- func (p *Provider) IsAuthorized(cmd commands.EvebotCommand, userEntry *UserEntry) bool
- func (p *Provider) ReadUser(userID string) (*UserEntry, error)
- func (p *Provider) SaveUserAuth(ctx context.Context, state string, code string) error
- func (p *Provider) Verify(ctx context.Context, input string) (*oidc.IDToken, error)
- type UserEntry
- type UserStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Provider)
func ChatProviderParam ¶
func ChatProviderParam(c interfaces.ChatProvider) Option
func DynamoParam ¶
func EveAPIParam ¶
func EveAPIParam(e interfaces.EveAPI) Option
func OpenIDConnectParam ¶
func ResolverParam ¶
func ResolverParam(r interfaces.CommandResolver) Option
type Provider ¶
type Provider struct { ChatService interfaces.ChatProvider CommandResolver interfaces.CommandResolver EveAPI interfaces.EveAPI Cfg *config.Config // contains filtered or unexported fields }
Provider provides access to the Common Deps/Services required for this project
func (*Provider) AuthCodeURL ¶
func (*Provider) IsAuthorized ¶
func (p *Provider) IsAuthorized(cmd commands.EvebotCommand, userEntry *UserEntry) bool
TODO: Setup a more "polished" RBAC strategy Want to be able to map incoming/dowstream groups with Roles in our system
func (*Provider) SaveUserAuth ¶
Click to show internal directories.
Click to hide internal directories.