Neoteroi / BlackSheep-Examples

Various examples for BlackSheep.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BlackSheep-Examples

Various examples for BlackSheep.

Example Description
./testing-api/ Shows how to test a BlackSheep API using pytest and the provided TestClient (see also testing).
./piccolo-admin/ Shows how to use the mount feature to use Piccolo Admin in BlackSheep.
./jwt-validation Shows how to configure a BlackSheep API that uses JWTs to implement authentication and authorization for users.
./oidc Shows how to configure a BlackSheep app to use OpenID Connect and integrate with: Azure Active Directory, Auth0, Google, or Okta.
./aad-machine-to-machine Shows how to configure an API that requires access tokens issued by Azure Active Directory, and how to obtain access tokens using MSAL for Python for a confidential client (machine to machine communication).
./oauth2-password-provider Shows an implementation of OAuth2 Server with password authentication.
./websocket-chat Shows how to use WebSocket with BlackSheep, the example consists of a simple chat application built using WebSocket and VueJS.
./proxy-1 Shows how to create a proxy server with BlackSheep, to proxy all requests to a back-end, and return responses from that back-end. (Proxying to a Flask back-end).
./proxy-2 Shows how to create a proxy server with BlackSheep, to proxy all requests to a back-end, and return responses from that back-end. (Proxying to a BlackSheep back-end).
./max-body-size Shows a way to control the maximum body size when reading requests streams.
./long-polling Shows an example of long polling implemented using BlackSheep.
./server-sent-events Shows a basic example of how to use Server-sent events with BlackSheep (>=2.0.6).

About

Various examples for BlackSheep.

License:MIT License


Languages

Language:Python 77.4%Language:HTML 14.4%Language:JavaScript 6.4%Language:Shell 1.9%