Skip to content

Sample app shell for using the Piral auth plugins.

License

Notifications You must be signed in to change notification settings

piral-samples/piral-auth-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Piral Logo

Sample app shell for using the Piral auth plugins.

⚡ This sample demonstrates the primary use of piral-oidc and piral-oauth2 in a simple app shell.

Feel free to play around with the code using StackBlitz.

Open in StackBlitz

You can visit this demo at auth.samples.piral.cloud/.

Getting Started

Install the dependencies:

npm install

And then change the values of the createPlugin function in src/index.tsx. These values need to come from your OpenID Connect (OIDC) or OAuth2 provider.

Now run:

npm start

The app shell should be up and running.

More Information

You find more information at the oauth2 plugin page or the oidc plugin page.

Most issues will actually be solved by getting familiar with the libraries underneath.

License

Piral and this sample code is released using the MIT license. For more information see the license file.