Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get server context with custom token #70

Closed
tusmester opened this issue Nov 7, 2022 · 0 comments
Closed

Get server context with custom token #70

tusmester opened this issue Nov 7, 2022 · 0 comments
Assignees

Comments

@tusmester
Copy link
Member

tusmester commented Nov 7, 2022

This story is part of an effort to make the following scenario simpler: the .Net client is used on a backend Asp.Net server to make server-to-server calls to a separate repository service.

The current server factory API assumes we always authenticate with the repository using configured (admin) clientid/secret values. There is a new scenario we need to support: when the user logs in on the client and makes a request to the custom backend API, and we need to make backend calls to a sensenet repository service from there in the name of the currently authenticated user.

  • we want to get a server object without authentication
  • because we already have a token that we want to set

Acceptance

  • I can use the same or similar feature service registration API as in other cases (AddSenseNetRepository)
  • get a server context using a similar API (GetServerAsync) and provide a custom auth token
@tusmester tusmester changed the title [Server client] Get server context with custom token Get server context with custom token Nov 7, 2022
@tusmester tusmester self-assigned this Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant