Documentation ¶
Index ¶
- type DatastoreManager
- func (d *DatastoreManager) CreateAuthenticationRequest(ctx context.Context, c *consent.AuthenticationRequest) error
- func (d *DatastoreManager) CreateAuthenticationSession(ctx context.Context, a *consent.AuthenticationSession) error
- func (d *DatastoreManager) CreateConsentRequest(ctx context.Context, c *consent.ConsentRequest) error
- func (d *DatastoreManager) CreateForcedObfuscatedAuthenticationSession(ctx context.Context, s *consent.ForcedObfuscatedAuthenticationSession) error
- func (d *DatastoreManager) DeleteAuthenticationSession(ctx context.Context, id string) error
- func (d *DatastoreManager) FindPreviouslyGrantedConsentRequests(ctx context.Context, client string, subject string) ([]consent.HandledConsentRequest, error)
- func (d *DatastoreManager) FindPreviouslyGrantedConsentRequestsByUser(ctx context.Context, subject string, limit, offset int) ([]consent.HandledConsentRequest, error)
- func (d *DatastoreManager) GetAuthenticationRequest(ctx context.Context, challenge string) (*consent.AuthenticationRequest, error)
- func (d *DatastoreManager) GetAuthenticationSession(ctx context.Context, id string) (*consent.AuthenticationSession, error)
- func (d *DatastoreManager) GetConsentRequest(ctx context.Context, challenge string) (*consent.ConsentRequest, error)
- func (d *DatastoreManager) GetForcedObfuscatedAuthenticationSession(ctx context.Context, client, obfuscated string) (*consent.ForcedObfuscatedAuthenticationSession, error)
- func (d *DatastoreManager) HandleAuthenticationRequest(ctx context.Context, challenge string, r *consent.HandledAuthenticationRequest) (*consent.AuthenticationRequest, error)
- func (d *DatastoreManager) HandleConsentRequest(ctx context.Context, challenge string, r *consent.HandledConsentRequest) (*consent.ConsentRequest, error)
- func (d *DatastoreManager) RevokeUserAuthenticationSession(ctx context.Context, subject string) error
- func (d *DatastoreManager) RevokeUserClientConsentSession(ctx context.Context, user, client string) error
- func (d *DatastoreManager) RevokeUserConsentSession(ctx context.Context, user string) error
- func (d *DatastoreManager) VerifyAndInvalidateAuthenticationRequest(ctx context.Context, verifier string) (*consent.HandledAuthenticationRequest, error)
- func (d *DatastoreManager) VerifyAndInvalidateConsentRequest(ctx context.Context, verifier string) (*consent.HandledConsentRequest, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatastoreManager ¶
type DatastoreManager struct {
// contains filtered or unexported fields
}
DatastoreManager is a Google Datastore implementation for oauth.ConsentRequestManager.
func NewDatastoreManager ¶
func NewDatastoreManager(client *datastore.Client, namespace string, c client.Manager, store pkg.FositeStorer) *DatastoreManager
NewDatastoreManager initializes a new DatastoreManager with the given client
func (*DatastoreManager) CreateAuthenticationRequest ¶
func (d *DatastoreManager) CreateAuthenticationRequest(ctx context.Context, c *consent.AuthenticationRequest) error
func (*DatastoreManager) CreateAuthenticationSession ¶
func (d *DatastoreManager) CreateAuthenticationSession(ctx context.Context, a *consent.AuthenticationSession) error
func (*DatastoreManager) CreateConsentRequest ¶
func (d *DatastoreManager) CreateConsentRequest(ctx context.Context, c *consent.ConsentRequest) error
func (*DatastoreManager) CreateForcedObfuscatedAuthenticationSession ¶
func (d *DatastoreManager) CreateForcedObfuscatedAuthenticationSession(ctx context.Context, s *consent.ForcedObfuscatedAuthenticationSession) error
func (*DatastoreManager) DeleteAuthenticationSession ¶
func (d *DatastoreManager) DeleteAuthenticationSession(ctx context.Context, id string) error
func (*DatastoreManager) FindPreviouslyGrantedConsentRequests ¶
func (d *DatastoreManager) FindPreviouslyGrantedConsentRequests(ctx context.Context, client string, subject string) ([]consent.HandledConsentRequest, error)
func (*DatastoreManager) FindPreviouslyGrantedConsentRequestsByUser ¶
func (d *DatastoreManager) FindPreviouslyGrantedConsentRequestsByUser(ctx context.Context, subject string, limit, offset int) ([]consent.HandledConsentRequest, error)
func (*DatastoreManager) GetAuthenticationRequest ¶
func (d *DatastoreManager) GetAuthenticationRequest(ctx context.Context, challenge string) (*consent.AuthenticationRequest, error)
func (*DatastoreManager) GetAuthenticationSession ¶
func (d *DatastoreManager) GetAuthenticationSession(ctx context.Context, id string) (*consent.AuthenticationSession, error)
func (*DatastoreManager) GetConsentRequest ¶
func (d *DatastoreManager) GetConsentRequest(ctx context.Context, challenge string) (*consent.ConsentRequest, error)
func (*DatastoreManager) GetForcedObfuscatedAuthenticationSession ¶
func (d *DatastoreManager) GetForcedObfuscatedAuthenticationSession(ctx context.Context, client, obfuscated string) (*consent.ForcedObfuscatedAuthenticationSession, error)
func (*DatastoreManager) HandleAuthenticationRequest ¶
func (d *DatastoreManager) HandleAuthenticationRequest(ctx context.Context, challenge string, r *consent.HandledAuthenticationRequest) (*consent.AuthenticationRequest, error)
func (*DatastoreManager) HandleConsentRequest ¶
func (d *DatastoreManager) HandleConsentRequest(ctx context.Context, challenge string, r *consent.HandledConsentRequest) (*consent.ConsentRequest, error)
func (*DatastoreManager) RevokeUserAuthenticationSession ¶
func (d *DatastoreManager) RevokeUserAuthenticationSession(ctx context.Context, subject string) error
func (*DatastoreManager) RevokeUserClientConsentSession ¶
func (d *DatastoreManager) RevokeUserClientConsentSession(ctx context.Context, user, client string) error
func (*DatastoreManager) RevokeUserConsentSession ¶
func (d *DatastoreManager) RevokeUserConsentSession(ctx context.Context, user string) error
func (*DatastoreManager) VerifyAndInvalidateAuthenticationRequest ¶
func (d *DatastoreManager) VerifyAndInvalidateAuthenticationRequest(ctx context.Context, verifier string) (*consent.HandledAuthenticationRequest, error)
func (*DatastoreManager) VerifyAndInvalidateConsentRequest ¶
func (d *DatastoreManager) VerifyAndInvalidateConsentRequest(ctx context.Context, verifier string) (*consent.HandledConsentRequest, error)
Click to show internal directories.
Click to hide internal directories.