Versions in this module Expand all Collapse all v0 v0.0.1 Feb 4, 2024 Changes in this version + type Provider struct + CallbackURL string + ClientKey string + HTTPClient *http.Client + Secret string + func New(clientKey, secret, callbackURL string, opts ProviderOptions) *Provider + func (p *Provider) BeginAuth(state string) (goth.Session, error) + func (p *Provider) Client() *http.Client + func (p *Provider) Debug(debug bool) + func (p *Provider) FetchUser(session goth.Session) (goth.User, error) + func (p *Provider) Name() string + func (p *Provider) RefreshToken(refreshToken string) (*oauth2.Token, error) + func (p *Provider) RefreshTokenAvailable() bool + func (p *Provider) SetName(name string) + func (p *Provider) UnmarshalSession(data string) (goth.Session, error) + type ProviderOptions struct + Scopes []ScopeType + Tenant TenantType + type ScopeType string + const AgreementAcceptanceReadAllScope + const AgreementAcceptanceReadScope + const AgreementReadAllScope + const AgreementReadWriteAllScope + const CalendarsReadScope + const CalendarsReadSharedScope + const CalendarsReadWriteScope + const CalendarsReadWriteSharedScope + const ContactsReadScope + const ContactsReadSharedScope + const ContactsReadWriteScope + const ContactsReadWriteSharedScope + const DeviceCommandScope + const DeviceManagementAppsReadAllScope + const DeviceManagementAppsReadWriteAllScope + const DeviceManagementConfigurationReadAllScope + const DeviceManagementConfigurationReadWriteAllScope + const DeviceManagementManagedDevicesPrivilegedOperationsAllScope + const DeviceManagementManagedDevicesReadAllScope + const DeviceManagementManagedDevicesReadWriteAllScope + const DeviceManagementRBACReadAllScope + const DeviceManagementRBACReadWriteAllScope + const DeviceManagementServiceConfigReadAllScope + const DeviceManagementServiceConfigReadWriteAllScope + const DeviceReadScope + const DirectoryAccessAsUserAllScope + const DirectoryReadAllScope + const DirectoryReadWriteAllScope + const EduAdministrationReadScope + const EduAdministrationReadWriteScope + const EduAssignmentsReadBasicScope + const EduAssignmentsReadScope + const EduAssignmentsReadWriteBasicScope + const EduAssignmentsReadWriteScope + const EduRosteringReadBasicScope + const EmailScope + const FilesReadAllScope + const FilesReadScope + const FilesReadSelectedScope + const FilesReadWriteAllScope + const FilesReadWriteAppFolderScope + const FilesReadWriteScope + const FilesReadWriteSelectedScope + const GroupReadAllScope + const GroupReadWriteAllScope + const IdentityProviderReadAllScope + const IdentityProviderReadWriteAllScope + const IdentityRiskEventReadAllScope + const MailReadScope + const MailReadSharedScope + const MailReadWriteScope + const MailReadWriteSharedScope + const MailSendScope + const MailSendSharedScope + const MailboxSettingsReadScope + const MailboxSettingsReadWriteScope + const MemberReadHiddenScope + const NotesCreateScope + const NotesReadAllScope + const NotesReadScope + const NotesReadWriteAllScope + const NotesReadWriteScope + const OfflineAccessScope + const OpenIDScope + const PeopleReadAllScope + const PeopleReadScope + const ProfileScope + const ReportsReadAllScope + const SecurityEventsReadAllScope + const SecurityEventsReadWriteAllScope + const SitesFullControlAllScope + const SitesManageAllScope + const SitesReadAllScope + const SitesReadWriteAllScope + const TasksReadScope + const TasksReadSharedScope + const TasksReadWriteScope + const TasksReadWriteSharedScope + const UserActivityReadWriteCreatedByAppScope + const UserExportAllScope + const UserInviteAllScope + const UserReadAllScope + const UserReadBasicAllScope + const UserReadScope + const UserReadWriteAllScope + const UserReadWriteScope + type Session struct + AccessToken string + AuthURL string + ExpiresAt time.Time + RefreshToken string + func (s *Session) Authorize(provider goth.Provider, params goth.Params) (string, error) + func (s Session) GetAuthURL() (string, error) + func (s Session) Marshal() string + func (s Session) String() string + type TenantType string + const CommonTenant + const ConsumersTenant + const OrganizationsTenant