Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeOidcProvider ¶
func MakeOuath2Config ¶
Types ¶
type Claims ¶
type Claims struct { Sub string `json:"sub"` Name string `json:"name"` Email string `json:"email"` }
func HandleOIDC ¶
func HandleOIDC(ctx context.Context, idp *models.IdentityProvider, code string, redirect ...string) (*Claims, error)
HandleOIDC gets user's email and name by code & token
Click to show internal directories.
Click to hide internal directories.