Skip to content

support use of delegate token #4

Description

@daniel-garcia

The existing api assumes that the client application has permission to act without user delegation. In my application, the library is used behind an oauth2 proxy. The proxy does the oauth2 dance and passes back a header with the negotiated token. In this context, I need to use the token the proxy has negotiated and not have the client library refresh the token.

Steps to recreate:

  1. create app in azure
  2. setup permissions for calendar.read and user.read
  3. obtain tenant id, client id and client secret
  4. setup oauth2 proxy to use the settings in step 2.
  5. start up a backend that receives the token via X-Forwarded-Access-Token header.

Observed behavior:
Client can't "refresh" token because its permission scope is not user.read.all

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions