This demo tests the OAuth integration flow with Sliplane's OAuth provider. You can try it out at https://oauth-demo.sliplane.app/
- Create a
.envfile 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- Run the test server:
go run main.goOr using Docker:
docker build -t oauth-demo .
docker run -p 8080:8080 --env-file .env oauth-demo- Open http://localhost:8080 in your browser
- Auth/Token URL:
https://api.sliplane.io - API URL:
https://ctrl.sliplane.io
The test will:
- Redirect you to Sliplane for authorization
- Exchange the authorization code for an access token
- Test token refresh
- Make an API call to
GET /v0/projects