Documentation
¶
Index ¶
- func Exit(c *gin.Context)
- func GoogleCallback(c *gin.Context)
- func GoogleInstall(c *gin.Context)
- func GoogleLogin(c *gin.Context)
- func GooglePreview(c *gin.Context)
- func GoogleSetup(config Config)
- func Home(c *gin.Context)
- func Install(c *gin.Context)
- func MakeGetRequest(accessToken, url string) (*http.Response, error)
- func MicrosoftCallback(c *gin.Context)
- func MicrosoftLogin(c *gin.Context)
- func MicrosoftPreview(c *gin.Context)
- func MicrosoftSetup(config Config)
- func MicrosoftSign(email string) string
- func Preview(c *gin.Context)
- func Routes(config Config, router *gin.Engine)
- type ClientDetails
- type Config
- type Details
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GoogleCallback ¶
func GoogleInstall ¶
func GoogleLogin ¶
func GooglePreview ¶
func GoogleSetup ¶ added in v1.0.4
func GoogleSetup(config Config)
func MicrosoftCallback ¶
func MicrosoftLogin ¶
func MicrosoftPreview ¶
func MicrosoftSetup ¶ added in v1.0.4
func MicrosoftSetup(config Config)
func MicrosoftSign ¶
Types ¶
type ClientDetails ¶
type ClientDetails struct { ClientName string `json:"clientname"` ClientData []Details `json:"clientemails"` }
func GoogleSign ¶
func GoogleSign(c *gin.Context, clientDetails ClientDetails) (ClientDetails, error)
type Config ¶
type Config struct { DOMAIN string SECRET_KEY string SIGN_API_KEY string AUTH_GOOGLE_URL string AUTH_MICROSOFT_URL string AUTH_GOOGLE_CLIENT_ID string AUTH_GOOGLE_CLIENT_SECRET string AUTH_MICROSOFT_CLIENT_ID string AUTH_MICROSOFT_TENANT_ID string AUTH_MICROSOFT_SECRET_ID string AUTH_MICROSOFT_SCOPES string }
Click to show internal directories.
Click to hide internal directories.