A library used for communicating with the auth service to authorise requests from microservices
Confidence level for micro services can be configured in two ways. One option is to declare it at the controllers level so that it's applied to all controllers of the micro service The other option is specifying it for each controller. When both global level and controller level are defined, the individual controller's confidence level takes precedence
The valid Confidence Level values are 0, 100, 200, 300, 500
Add confidenceLevel
to controllers
section of your application.conf
Example
{
controllers {
confidenceLevel = 300
}
}
Add confidenceLevel
to controllers
section of your application.conf
Example
{
controllers {
YourController{
needsAuth = true
authParams {
confidenceLevel = 100
}
}
}
}
Include the following dependency in your SBT build
resolvers += Resolver.bintrayRepo("hmrc", "releases")
libraryDependencies += "uk.gov.hmrc" %% "play-authorisation" % "x.x.x"
This code is open source software licensed under the Apache 2.0 License.