Created
May 30, 2018 22:03
-
-
Save nuwanbando/6a585bbcda95cd690a1cc3436d5fd2d0 to your computer and use it in GitHub Desktop.
This file contains 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
endpoint http:APIListener listener { | |
port:9090, | |
authProviders:[basicAuthProvider] | |
}; | |
// Add the authConfig in the ServiceConfig annotation to protect the service using Auth | |
@http:ServiceConfig { | |
basePath:"/e-shop", | |
authConfig:{ | |
authProviders:["basic1"], | |
authentication:{enabled:true} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment