Ballerina Secure Token Service
10K+
A Docker image of Ballerina Secure Token Service (STS). Supports OAuth2 token issuing and validation.
$ docker run -p 9445:9445 ldclakmal/ballerina-sts:latest
Get an access-token with a scope:
curl -kv -u FlfJYKBD2c925h4lkycqNZlC2l4a:PJz0UhTJMrHOo68QQNpvnqAY_3Aa -H "Content-Type: application/x-www-form-urlencoded;charset=UTF-8" -d "grant_type=client_credentials&scope=view-order" https://localhost:9445/oauth2/token
Refresh an access-token with a scope:
curl -kv -u 3VTwFk7u1i366wzmvpJ_LZlfAV4a:TNOH0ZklJm8sqS9U3IMMAZVth78a -H "Content-Type: application/x-www-form-urlencoded;charset=UTF-8" -d "grant_type=refresh_token&refresh_token=<REFRESH_TOKEN>&scope=view-order" https://localhost:9445/oauth2/token
Validate an access-token:
curl -kv -u admin:admin -H 'Content-Type: application/x-www-form-urlencoded' -X POST --data 'token=<ACCESS_TOKEN>' https://localhost:9445/oauth2/introspect
Content type
Image
Digest
Size
246.2 MB
Last updated
over 4 years ago
docker pull ldclakmal/ballerina-sts