providers Package

Import Path: github.com/systmms/incidents/internal/auth/providers

Types

AttributeMapping

AttributeMapping represents mapping of SAML attributes to user fields

{<nil> 48549 type 0 [0x14000419540] 0}

AzureADProvider

AzureADProvider implements Azure AD authentication using OIDC

{<nil> 644 type 0 [0x14000389440] 0}

Methods

NewAzureADProvider

NewAzureADProvider creates a new Azure AD authentication provider

{<nil> <nil> NewAzureADProvider 0x1400037f7a0 <nil>}

AzureADProviderConfig

AzureADProviderConfig represents Azure AD specific configuration

{<nil> 198 type 0 [0x14000389200] 0}

Methods

GetAzureADConfigExample

GetAzureADConfigExample returns an example configuration for Azure AD

{<nil> <nil> GetAzureADConfigExample 0x1400039b6a0 <nil>}

DatabaseStateStore

DatabaseStateStore implements StateStore using database persistence

{<nil> 59414 type 0 [0x1400043ccc0] 0}

Methods

NewDatabaseStateStore

NewDatabaseStateStore creates a new database-backed state store

{<nil> <nil> NewDatabaseStateStore 0x1400044e440 <nil>}

GitHubProvider

GitHubProvider implements GitHub Enterprise authentication using OAuth 2.0

{<nil> 6797 type 0 [0x14000399200] 0}

Methods

NewGitHubProvider

NewGitHubProvider creates a new GitHub Enterprise authentication provider

{<nil> <nil> NewGitHubProvider 0x140003a2ac0 <nil>}

GitHubProviderConfig

GitHubProviderConfig represents GitHub Enterprise specific configuration

{<nil> 6018 type 0 [0x14000398ec0] 0}

Methods

GetGitHubConfigExample

GetGitHubConfigExample returns an example configuration for GitHub Enterprise

{<nil> <nil> GetGitHubConfigExample 0x140003ba3a0 <nil>}

GitHubTeam

GitHubTeam represents GitHub team information

{<nil> 7294 type 0 [0x14000399640] 0}

GitHubUser

GitHubUser represents GitHub user information

{<nil> 6980 type 0 [0x140003993c0] 0}

GoogleWorkspaceProvider

GoogleWorkspaceProvider implements Google Workspace authentication using OIDC

{<nil> 19318 type 0 [0x140003c8380] 0}

Methods

NewGoogleWorkspaceProvider

NewGoogleWorkspaceProvider creates a new Google Workspace authentication provider

{<nil> <nil> NewGoogleWorkspaceProvider 0x140003bb0e0 <nil>}

GoogleWorkspaceProviderConfig

GoogleWorkspaceProviderConfig represents Google Workspace specific configuration

{<nil> 18631 type 0 [0x140003c8100] 0}

Methods

GetGoogleWorkspaceConfigExample

GetGoogleWorkspaceConfigExample returns an example configuration for Google Workspace

{<nil> <nil> GetGoogleWorkspaceConfigExample 0x140003cfca0 <nil>}

LocalProvider

LocalProvider implements local username/password authentication

{<nil> 25812 type 0 [0x140003d2380] 0}

Methods

NewLocalProvider

NewLocalProvider creates a new local authentication provider

{<nil> <nil> NewLocalProvider 0x140003e60a0 <nil>}

OIDCProvider

OIDCProvider implements OIDC authentication

{<nil> 35660 type 0 [0x140003fa7c0] 0}

Methods

NewOIDCProvider

NewOIDCProvider creates a new OIDC authentication provider

{<nil> <nil> NewOIDCProvider 0x14000406660 <nil>}

OIDCProviderConfig

OIDCProviderConfig represents OIDC provider configuration

{<nil> 35289 type 0 [0x140003fa540] 0}

OIDCState

OIDCState represents OIDC authentication state

{<nil> 35875 type 0 [0x140003faa00] 0}

SAMLProvider

SAMLProvider implements SAML 2.0 authentication

{<nil> 49060 type 0 [0x140004197c0] 0}

Methods

NewSAMLProvider

NewSAMLProvider creates a new SAML authentication provider

{<nil> <nil> NewSAMLProvider 0x1400042bb80 <nil>}

SAMLProviderConfig

SAMLProviderConfig represents SAML provider configuration

{<nil> 47095 type 0 [0x14000419100] 0}

Methods

GetSAMLConfigExample

GetSAMLConfigExample returns an example configuration for SAML

{<nil> <nil> GetSAMLConfigExample 0x14000437b60 <nil>}

StateStore

StateStore interface for OIDC state management

{<nil> 59039 type 0 [0x1400043c800] 0}

Functions

ValidateAzureADConfig

ValidateConfig validates Azure AD provider configuration

{<nil> <nil> ValidateAzureADConfig 0x1400039af60 <nil>}

ValidateGitHubConfig

ValidateConfig validates GitHub provider configuration

{<nil> <nil> ValidateGitHubConfig 0x140003b7e40 <nil>}

ValidateGoogleWorkspaceConfig

ValidateConfig validates Google Workspace provider configuration

{<nil> <nil> ValidateGoogleWorkspaceConfig 0x140003cf3e0 <nil>}

ValidateSAMLConfig

ValidateConfig validates SAML provider configuration

{<nil> <nil> ValidateSAMLConfig 0x14000437440 <nil>}

generateRandomString

generateRandomString generates a cryptographically secure random string

{<nil> <nil> generateRandomString 0x1400041d8c0 <nil>}

generateSecureString

generateSecureString generates a cryptographically secure random string

{<nil> <nil> generateSecureString 0x14000455000 <nil>}

isHigherRole

isHigherRole checks if role1 has higher privileges than role2

{<nil> <nil> isHigherRole 0x1400040e6c0 <nil>}

isValidDomainName

isValidDomainName checks if the domain name is in a valid format

{<nil> <nil> isValidDomainName 0x140003cf700 <nil>}

isValidTenantID

isValidTenantID checks if the tenant ID is in a valid format

{<nil> <nil> isValidTenantID 0x1400039b0e0 <nil>}

mapOIDCRoleToInternalRole

mapOIDCRoleToInternalRole maps OIDC roles to internal roles

{<nil> <nil> mapOIDCRoleToInternalRole 0x1400040e180 <nil>}

validateOIDCConfig

validateOIDCConfig validates OIDC provider configuration

{<nil> <nil> validateOIDCConfig 0x1400041d4c0 <nil>}

Generated automatically from Go source code. Last updated: 2025-08-25T07:51:05-04:00