Skip to content

feature request: Provide a tutorial when protecting API resource #16

Description

@kjbtech

What problem did you meet?

In my case, I have a kind of SPA that calls a Proxy API that redirect calls on backends APIs.
SPA need to auhenticate itself on the Proxy API. That works fine.
Then, the proxy API forwards HTTP calls to APIs that he protects.
In that matters, Proxy API wants to use the token that authenticate SPA, and forward it to the backends API.

To do so, regarding the fact that the example use Cookies to store the issued token, when forwarding, I have to get the access token for resources.

You have a tutorial part about API protecting (see https://github.com/logto-io/csharp/blob/master/src/Logto.AspNetCore.Authentication/docs/tutorial.md#api-resources).
However, I do not understand how it could work (maybe because I'm not an expert at OIDC).

Describe what you'd like Logto to have

A working example or an explanation on what I had wrong.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions