Skip to content

SDK should support WithOIDCAccessToken option #1307

@jakedoublev

Description

@jakedoublev

Background

Currently, the otdfctl CLI is only able to authenticate users through the client credentials flow, which is itself a limitation of the SDK (relying on the WithClientCredentials option). There is also another supported option WithTokenExchange. However, the CLI and other clients should not be required to necessarily utilize on a token exchange flow when they may be driven by an entity directly (as in the case of a CLI) and there are cases where the client should be of lower trust.

Acceptance Criteria

  1. SDK authenticates gRPC requests with a passed in OIDC Access Token
  2. Unit tests

Metadata

Metadata

Assignees

Labels

comp:architectureAnything that impacts architecturecomp:sdkA software development kit, including library, for client applications and inter-service communicati

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions