This is a beta version.
This app fetches OAuth 2.0 accesstoken
, id token
, and refresh token
for further processing/attribute check.
The goal of this project is to enhance DX for developers who are focused on a token’s content rather then on different parameters or aspects of an OAuth 2.0 flow itself. The app provides a quick and convenient way of fetching access
, id
, and refresh
(if applicable) tokens.
The app currently supports the following flows:
- Authorization code (including the token
response type
) - Refresh token
- PKCE
- Run
docker build -t token-fetcher .
- Run
docker run --rm -p "3333:3333" -v ${PWD}/.data:/src/.data --name token-fetcher-container token-fetcher
.
OR
- Simply run
make
, which will execute the commands mentioned above
If you want to play with this project a bit, you can use Keycloak as your local identity provider. Run it using the following command:
docker run -p 8080:8080 -e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=admin -v ./keycloak:/opt/keycloak/data/ quay.io/keycloak/keycloak:25.0.1 start-dev
If you like this project, consider giving it a ⭐️
- Favicon Icon - https://www.flaticon.com/free-icons/keychain