Versions in this module Expand all Collapse all v1 v1.0.0 Mar 12, 2021 Changes in this version + const AppIDClaim + const AudienceClaim + const AuthorizedParty + const BotOpenIDMetadataKey + const ChannelService + const DefaultChannelAuthTenant + const EmulateOauthCardsKey + const IssuerClaim + const KeyIDHeader + const OauthURLKey + const ServiceURLClaim + const ToBotFromChannelTokenIssuer + const ToChannelFromBotLoginURLPrefix + const ToChannelFromBotOauthScope + const ToChannelFromBotTokenEndpointPathTOCHANNELFROMBOTTOKENENDPOINTPATH + const VersionClaim + var AllowedSigningAlgorithms = []string + var ToBotFromChannelOpenIDMetadataURL = []string + var ToBotFromEmulatorOpenIDMetadataURL = []string + var ToBotFromEnterpriseChannelOpenIDMetadataURLFormat = []string + var ToChannelFromBotLoginURL = []string + type Claim interface + func NewClaim(tpe, val string) Claim + type ClaimsIdentity interface + GetClaimValue func(string) string + IsAuthenticated func() bool + func NewClaimIdentity(claims map[string]interface{}, isAuth bool) ClaimsIdentity + type CredentialProvider interface + GetAppID func() string + GetAppPassword func() string + IsAuthenticationDisabled func() bool + IsValidAppID func(appID string) bool + type DefaultClaim struct + Type string + Value string + type DefaultClaimIdentity struct + func (ci DefaultClaimIdentity) GetClaimValue(cType string) string + func (ci DefaultClaimIdentity) IsAuthenticated() bool + type JwtTokenValidator struct + func (jv *JwtTokenValidator) AuthenticateRequest(ctx context.Context, activity schema.Activity, authHeader string, ...) (ClaimsIdentity, error) + type SimpleCredentialProvider struct + AppID string + Password string + func (sp SimpleCredentialProvider) GetAppID() string + func (sp SimpleCredentialProvider) GetAppPassword() string + func (sp SimpleCredentialProvider) IsAuthenticationDisabled() bool + func (sp SimpleCredentialProvider) IsValidAppID(appID string) bool + type TokenValidator interface + AuthenticateRequest func(ctx context.Context, activity schema.Activity, authHeader string, ...) (ClaimsIdentity, error) + func NewJwtTokenValidator() TokenValidator