(ctx context.Context, appID uuid.UUID)
| 3769 | } |
| 3770 | |
| 3771 | func (q *querier) GetOAuth2ProviderAppSecretsByAppID(ctx context.Context, appID uuid.UUID) ([]database.OAuth2ProviderAppSecret, error) { |
| 3772 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceOauth2AppSecret); err != nil { |
| 3773 | return []database.OAuth2ProviderAppSecret{}, err |
| 3774 | } |
| 3775 | return q.db.GetOAuth2ProviderAppSecretsByAppID(ctx, appID) |
| 3776 | } |
| 3777 | |
| 3778 | func (q *querier) GetOAuth2ProviderAppTokenByAPIKeyID(ctx context.Context, apiKeyID string) (database.OAuth2ProviderAppToken, error) { |
| 3779 | token, err := q.db.GetOAuth2ProviderAppTokenByAPIKeyID(ctx, apiKeyID) |
nothing calls this directly
no test coverage detected