example/

directory
v0.0.0-...-690ff77 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: MIT

README

Shellicator Examples

Authorization Grant Flow Example

This is the more explicit example and uses the authorization grant flow to obtain an access & refresh token.

To run this example you need to setup the google identity platform. Use to following environment variables to configure the example:

export SHELLICATOR_CLIENT_ID=<client id provided by your iam>
export SHELLICATOR_CLIENT_SECRET=<client secret provided by your iam>

Device Grant Flow Example

This example shows how to use the device grant type and the use of an OpenIDConnect Discovery Endpoint to obtain an access & refresh token.

To run this example you need an identity provider that supports the device grant flow and provides an Discovery Endpoint. Use to following environment variables to configure the example:

export SHELLICATOR_CLIENT_ID=<client id provided by your iam>
export SHELLICATOR_OIDC_DISCOVERY=<discover enpoint of your iam provider>
export SHELLICATOR_USERPROFILE_URL=<url to the profile endpoint>

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL