Skip to content

sliplane/oauth-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OAuth Integration Test

This demo tests the OAuth integration flow with Sliplane's OAuth provider. You can try it out at https://oauth-demo.sliplane.app/

Setup

  1. Create a .env file in this directory with the following variables:
OAUTH_CLIENT_ID=your_client_id
OAUTH_CLIENT_SECRET=your_client_secret
OAUTH_REDIRECT_URI=http://localhost:8080/callback  # Optional, defaults to http://localhost:8080/callback
  1. Run the test server:
go run main.go

Or using Docker:

docker build -t oauth-demo .
docker run -p 8080:8080 --env-file .env oauth-demo
  1. Open http://localhost:8080 in your browser

Configuration

  • Auth/Token URL: https://api.sliplane.io
  • API URL: https://ctrl.sliplane.io

The test will:

  1. Redirect you to Sliplane for authorization
  2. Exchange the authorization code for an access token
  3. Test token refresh
  4. Make an API call to GET /v0/projects

About

Simple Demo for the Sliplane OAuth Provider

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published