Created
July 19, 2020 05:02
-
-
Save menakaj/910ef250724f1515e6cd25ecd3d0a6e0 to your computer and use it in GitHub Desktop.
API Key Issuer Config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # API Key Security Token Service(STS) configurations | |
| [apikey.issuer] | |
| # API Key STS token configurations | |
| [apikey.issuer.tokenConfig] | |
| enabled=true | |
| keyStorePath="${mgw-runtime.home}/runtime/bre/security/ballerinaKeystore.p12" | |
| keyStorePassword="ballerina" | |
| issuer="https://localhost:9095/apikey" | |
| certificateAlias="ballerina" | |
| # validity time in seconds for the API Key. -1 is to indicate unlimited time | |
| validityTime=-1 | |
| # API Key STS Allowed APIs | |
| # provide the list of allowed APIs by the generated API Key | |
| # [[apikey.issuer.api]] | |
| # name="API name given in the API Definition" | |
| # versions="Allowed versions" or "*" to allow all versions | |
| # Examples : | |
| # API 1 | |
| [[apikey.issuer.api]] | |
| name="Swagger Petstore New" | |
| versions="1.0.0, v1, v2" | |
| # API 2 | |
| [[apikey.issuer.api]] | |
| name="MyAPI" | |
| versions="*" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment