OAuth2WebSecurityConfig

class OAuth2WebSecurityConfig: DropProjectSecurityConfig

Fields

Name Description
val LOG: LoggerFactory.getLogger(this.javaClass.name)
lateinit var resourceLoader: ResourceLoader
var idKey: String?
val idValues: mutableMapOf>()

Constructors

Name Description
constructor()

Methods

configure

fun configure(http: HttpSecurity)

Parameters

Name Description
http: HttpSecurity

ReturnValue

Name Description
Unit

userAuthoritiesMapper

fun userAuthoritiesMapper(): GrantedAuthoritiesMapper

This function relies on the existence of a classpath accessible oauth-roles.csv with the following format:

login;role user1;ROLE_TEACHER user2;ROLE_DROP_PROJECT_ADMIN,ROLE_TEACHER

Where "login" is the name of the attribute associated with the user through the user info endpoint (see drop-project.properties)

ReturnValue

Name Description
GrantedAuthoritiesMapper