A library used for communicating with the auth service to authorise requests from microservices
Level of assurance for micro services can be configured in two ways. One option is to configure at the controllers level so that it's applied to all controllers of the micro service The other option is fine configuring at each controller level. When both global level and controller level is defined, the individual controller level assurance takes precedence
By default all the micro service will have assurance level of 2 if nothing is configured.
Add defaultLevelOfAssurance to controllers section of your application.conf
Example
{
controllers {
defaultLevelOfAssurance = "1"
}
}Add levelOfAssurance to controllers section of your application.conf
Example
{
controllers {
YourController{
needsAuth = true
authParams {
levelOfAssurance = "1"
}
}
}
}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.