Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ISOInterface ¶
type ISOInterface interface { IsoSessionFromSecretRef(ctx context.Context, provider *esv1beta1.SenhaseguraProvider, store esv1beta1.GenericStore, kube client.Client, namespace string) (*SenhaseguraIsoSession, error) GetIsoToken(clientID, clientSecret, systemURL string, ignoreSslCertificate bool) (token string, err error) }
type SenhaseguraIsoSession ¶
type SenhaseguraIsoSession struct { URL string Token string IgnoreSslCertificate bool // contains filtered or unexported fields }
SenhaseguraIsoSession contains information about senhasegura ISO API for any request.
func Authenticate ¶
func Authenticate(ctx context.Context, store esv1beta1.GenericStore, provider *esv1beta1.SenhaseguraProvider, kube client.Client, namespace string) (isoSession *SenhaseguraIsoSession, err error)
Authenticate check required authentication method based on provider spec and initialize ISO OAuth2 session.
func (*SenhaseguraIsoSession) GetIsoToken ¶
func (s *SenhaseguraIsoSession) GetIsoToken(clientID, clientSecret, systemURL string, ignoreSslCertificate bool) (token string, err error)
GetIsoToken calls senhasegura OAuth2 endpoint to get a token.
func (*SenhaseguraIsoSession) IsoSessionFromSecretRef ¶
func (s *SenhaseguraIsoSession) IsoSessionFromSecretRef(ctx context.Context, provider *esv1beta1.SenhaseguraProvider, store esv1beta1.GenericStore, kube client.Client, namespace string) (*SenhaseguraIsoSession, error)
IsoSessionFromSecretRef initialize an ISO OAuth2 flow with .spec.provider.senhasegura.auth.isoSecretRef parameters.
Click to show internal directories.
Click to hide internal directories.