diff options
Diffstat (limited to 'internal/storage/provider.go')
| -rw-r--r-- | internal/storage/provider.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/internal/storage/provider.go b/internal/storage/provider.go index b30bf45b5..34c50940d 100644 --- a/internal/storage/provider.go +++ b/internal/storage/provider.go @@ -236,6 +236,27 @@ type Provider interface { LoadOAuth2Session(ctx context.Context, sessionType OAuth2SessionType, signature string) (session *model.OAuth2Session, err error) /* + Implementation for OAuth2.0 Device Code Sessions. + */ + + // SaveOAuth2DeviceCodeSession saves an OAuth2.0 device code session to the storage provider. + SaveOAuth2DeviceCodeSession(ctx context.Context, session *model.OAuth2DeviceCodeSession) (err error) + + // UpdateOAuth2DeviceCodeSession updates an OAuth2.0 device code session in the storage provider. + UpdateOAuth2DeviceCodeSession(ctx context.Context, signature string, status int, checked time.Time) (err error) + + // DeactivateOAuth2DeviceCodeSession marks an OAuth2.0 device code session as inactive in the storage provider. + DeactivateOAuth2DeviceCodeSession(ctx context.Context, signature string) (err error) + + // LoadOAuth2DeviceCodeSession loads an OAuth2.0 device code session from the storage provider given the signature + // of the device code. + LoadOAuth2DeviceCodeSession(ctx context.Context, signature string) (session *model.OAuth2DeviceCodeSession, err error) + + // LoadOAuth2DeviceCodeSessionByUserCode loads an OAuth2.0 device code session from the storage provider given the + // signature of a user code. + LoadOAuth2DeviceCodeSessionByUserCode(ctx context.Context, signature string) (session *model.OAuth2DeviceCodeSession, err error) + + /* Implementation for OAuth2.0 PAR Contexts. */ |
