Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CredentialRequest ¶
type CredentialRequest struct {
UserInfo User `json:"user_info"`
}
type CredentialResponse ¶
type DecryptionService ¶
type DecryptionService struct { SessionTokenName string // contains filtered or unexported fields }
func NewDecryptionService ¶
func NewDecryptionService(decrypter Decrypter, sessionTokenName string) *DecryptionService
func (*DecryptionService) Attributes ¶
func (d *DecryptionService) Attributes(ctx context.Context) any
func (*DecryptionService) GetSessionTokenDecryptingMiddleware ¶
func (d *DecryptionService) GetSessionTokenDecryptingMiddleware() func(next http.Handler) http.Handler
type EncrypterDecrypter ¶
type EncryptionRequest ¶
type EncryptionResponse ¶
type EncryptionService ¶
type EncryptionService struct {
// contains filtered or unexported fields
}
func NewEncryptionService ¶
func NewEncryptionService(encrypter Encrypter) *EncryptionService
func (*EncryptionService) NewCredentialHandler ¶
func (e *EncryptionService) NewCredentialHandler() http.Handler
NewCredentialHandler returns an HTTP Handler that creates a session token for an EncryptionRequest. Authenication should be handled outside this handler.
To inject attributes into a session token, add it to the request's context, and specify the context key in the SessionTokenHandler method.
func (*EncryptionService) SessionTokenHandler ¶
func (e *EncryptionService) SessionTokenHandler() http.Handler
SessionTokenHandler returns an HTTP Handler that creates a session token for an EncryptionRequest. Authenication should be handled outside this handler.
To inject attributes into a session token, add it to the request's context, and specify the context key in the SessionTokenHandler method.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.