MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / GetByGUIDWithGrants

Method GetByGUIDWithGrants

inventory/oauth_client.go:24–24  ·  view source on GitHub ↗

GetByGUIDWithGrants returns the OAuth client by its GUID (client_id) with the grants for the user.

(ctx context.Context, guid string, uid int)

Source from the content-addressed store, hash-verified

22 GetByGUID(ctx context.Context, guid string) (*ent.OAuthClient, error)
23 // GetByGUIDWithGrants returns the OAuth client by its GUID (client_id) with the grants for the user.
24 GetByGUIDWithGrants(ctx context.Context, guid string, uid int) (*ent.OAuthClient, error)
25 // UpsertGrant creates or updates an OAuth grant for a user and client.
26 UpsertGrant(ctx context.Context, userID, clientID int, scopes []string) error
27 // UpdateGrantLastUsedAt updates the last used at for an OAuth grant for a user and client.

Callers 3

GetMethod · 0.65
GetMethod · 0.65
RefreshMethod · 0.65

Implementers 1

oauthClientClientinventory/oauth_client.go

Calls

no outgoing calls

Tested by

no test coverage detected