Documentation
¶
Index ¶
- func AcceptLogout(ctx context.Context, challenge string, accessToken string, refreshToken string) error
- func CreateAuthCode(ctx context.Context, consent *auth.ID, ...) (string, error)
- func CreateConsent(ctx context.Context, loginChallenge string) (*auth.ID, error)
- func CreateLogin(ctx context.Context, clientID string, scopes, audiences []string) (*auth.ID, error)
- func CreateLogout(ctx context.Context, url, subject, sessionID string) (*auth.ID, error)
- func Exchange(ctx context.Context, code string, verifier string) (*oauth2.Token, error)
- func GetLogin(ctx context.Context, challenge string) (*auth.GetLoginResponse, error)
- func LoginChallengeCode(ctx context.Context, challenge string, claims map[string]string) (*auth.GetLoginResponse, string, error)
- func OAuthConn(ctx context.Context) grpc2.ClientConnInterface
- func PasswordCredentialsCode(ctx context.Context, username, password, challenge string) (string, error)
- func PasswordCredentialsToken(ctx context.Context, username, password string) (*oauth2.Token, error)
- type ConsentResponse
- type LogoutResponse
- type RedirectResponse
- type TokenResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcceptLogout ¶
func AcceptLogout(ctx context.Context, challenge string, accessToken string, refreshToken string) error
AcceptLogout forwards call to grpc server
func CreateAuthCode ¶
func CreateAuthCode(ctx context.Context, consent *auth.ID, clientID, redirectURI, codeChallenge, codeChallengeMethod string) (string, error)
CreateAuthCode forwards call to grpc server
func CreateConsent ¶
CreateConsent forwards call to grpc server
func CreateLogin ¶
func CreateLogin(ctx context.Context, clientID string, scopes, audiences []string) (*auth.ID, error)
CreateLogin forwards call to grpc server
func CreateLogout ¶
CreateLogout forwards call to grpc server
func LoginChallengeCode ¶
func LoginChallengeCode(ctx context.Context, challenge string, claims map[string]string) (*auth.GetLoginResponse, string, error)
LoginChallengeCode forwards call to grpc server
func OAuthConn ¶
func OAuthConn(ctx context.Context) grpc2.ClientConnInterface
OAuthConn resolves a grpc connexion to ServiceOAuth
Types ¶
type ConsentResponse ¶
type LogoutResponse ¶
type RedirectResponse ¶
type RedirectResponse struct {
Challenge string `json:"challenge"`
}
func AcceptConsent ¶
func AcceptConsent(ctx context.Context, challenge string, scopes, audiences []string, accessToken, idToken map[string]string) (*RedirectResponse, error)
AcceptConsent forwards call to grpc server
func AcceptLogin ¶
AcceptLogin forwards call to grpc server
Click to show internal directories.
Click to hide internal directories.