authentification OpenID Connect (Keycloak) : flux authorization code, state signé, validation du token ID via JWKS, provisioning automatique des utilisateurs
This commit is contained in:
1 parent
51bbb45b32
commit
bedb6c98e7
15 files changed
+1057
-23
No files matched your search
@@ -0,0 +1,21 @@
|
||||
package domain
|
||||
|
||||
import "time"
|
||||
|
||||
// OIDCProvider décrit un fournisseur OpenID Connect enregistré dans la table oidc.
|
||||
type OIDCProvider struct {
|
||||
ID string `db:"id" json:"id"`
|
||||
Label string `db:"label" json:"label"`
|
||||
Domain string `db:"domain" json:"domain"`
|
||||
ClientID string `db:"client_id" json:"clientId"`
|
||||
ClientSecret string `db:"client_secret" json:"-"`
|
||||
WellknownURL string `db:"wellknown_url" json:"wellknownUrl"`
|
||||
DateCreated time.Time `db:"_date_created" json:"_date_created"`
|
||||
DateUpdated *time.Time `db:"_date_updated" json:"_date_updated"`
|
||||
VersionId string `db:"_version" json:"_version"`
|
||||
}
|
||||
|
||||
type OIDCProviderRepository interface {
|
||||
ListOIDCProviders() ([]*OIDCProvider, error)
|
||||
FindOIDCProvider(id string) (*OIDCProvider, error)
|
||||
}
|
||||
Reference in new issue
Block a user