8000 GitHub - arminio/play-authorisation at PE-967 · GitHub
[go: up one dir, main page]

Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

play-authorisation

Build Status Download

A library used for communicating with the auth service to authorise requests from microservices

Assurance Level Configuration

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.

Global Level Configuration

Add defaultLevelOfAssurance to controllers section of your application.conf

Example

{
    controllers {
      defaultLevelOfAssurance = "1"
    }
}

Controller Level Configuration

Add levelOfAssurance to controllers section of your application.conf

Example

{
    controllers {
      YourController{
        needsAuth = true
        authParams {
          levelOfAssurance = "1"
        }
      }
    }
}

Installing

Include the following dependency in your SBT build

resolvers += Resolver.bintrayRepo("hmrc", "releases")

libraryDependencies += "uk.gov.hmrc" %% "play-authorisation" % "x.x.x"

License

This code is open source software licensed under the Apache 2.0 License.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0