Sign inSign up

ldclakmal/ballerina-sts

By ldclakmal

•Updated over 4 years ago

Ballerina Secure Token Service

Image
0

10K+

ldclakmal/ballerina-sts repository overview

⁠Ballerina STS

A Docker image of Ballerina Secure Token Service (STS). Supports OAuth2 token issuing and validation.

⁠Installed
  1. Ballerina 2201.0.0 (Swan Lake)
⁠Run the image
$ docker run -p 9445:9445 ldclakmal/ballerina-sts:latest

⁠Test the image
  • 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

Tag summary

Content type

Image

Digest

Size

246.2 MB

Last updated

over 4 years ago

docker pull ldclakmal/ballerina-sts