Skip to content

Instantly share code, notes, and snippets.

@nuwanbando
Created May 30, 2018 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nuwanbando/6a585bbcda95cd690a1cc3436d5fd2d0 to your computer and use it in GitHub Desktop.
Save nuwanbando/6a585bbcda95cd690a1cc3436d5fd2d0 to your computer and use it in GitHub Desktop.
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