Skip to content

Add sample for WebAPI without external API calls needing access tokens #35

Description

@OsirisTerje

Currently, the samples folder includes a WebAPI sample that demonstrates the backend-for-frontend pattern and accesses a remote API using access tokens. However, there is no sample provided for a similar WebAPI application that does not call any external APIs and therefore does not require the use of access tokens.

Request:

  • Create a sample WebAPI application in the samples folder that demonstrates authentication and authorization using this library, but without making any external API calls.
  • The sample should illustrate a scenario where only user authentication is required (e.g., user logs in, but the backend does not call other services on behalf of the user).
  • Ensure the sample is clear, well-commented, and easy to follow for those who do not need backend-to-backend communication.
  • Update the documentation or README to reference and explain the new sample.
  • The current AuthExtensions doesn't work for this scenario, I'm raising a seprate issue for that.

Motivation:
This will help users who want to implement simple authentication flows without the complexity of access tokens and external API calls.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions