| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
Working examples of OpenID Connect integrations in BlackSheep applications.
⚠️ these examples work with BlackSheep v2. Browse the repository at tag v1 to see examples for blacksheep v1.
This repository contains examples of OpenID Connect integration with three identity providers:
And illustrate the following scenarios:
The files whose names start with "basic_" are configured to obtain only an id_token. This is useful when the same application that integrates with OpenID Connect does not need an access token for another API and all it needs is to identify users. The values in these files describe real applications configured in tenants owned by the owner of this repository.
App registrations for these examples only need to be configured with authentication URL http://localhost:5000/authorization-callback and enable issuing id_tokens.
⚠️ these examples only work with localhost!!!
This example can be tested using any Microsoft account, signing-in in the demo app inside the Azure tenant Neoteroi.
After sign-in, the application shows user claims.
This example can be tested by anyone, since the application in Auth0 enable creating an account in the Neoteroi account in Auth0.
This example can be tested by anyone having a Google account. Note: it has been tested and it works also with BlackSheep v1.
This example illustrates navigating to a sign-in page, but cannot be tested fully because the Okta account is not configured to enable sign-up.
The files whose names start with "scopes_" are configured to obtain, together with an id_token, an access_token for an API. These require secrets which, of course, are not exposed in this repository.
App registrations for these examples are slightly more complex, since they require configuring an API with scopes. Describing these details is beyond the scope of this repository. For more information on this subject, refer to the documentation of the identity providers (for example, for Auth0 here)
See the examples with 'storage' in their file names, to see how tokens can be exchanged with the clients using the HTML5 Storage API instead of response cookies (useful to improve reusability of web APIs).
| Back | FazBrowse Home | New Git URL |