Revision 59620
Added by Katerina Iatropoulou over 3 years ago
AuthoritiesMapper.java | ||
---|---|---|
22 | 22 |
HashSet<SimpleGrantedAuthority> authorities = new HashSet<>(); |
23 | 23 |
logger.info("entitlements" + entitlements.size()); |
24 | 24 |
String regex = "urn:geant:openaire[.]eu:group:(\\w+[\\W]*\\w+[-\\w]*):?(.*)?:role=member#aai[.]openaire[.]eu"; |
25 |
authorities.add(new SimpleGrantedAuthority("REGISTERED_USER")); |
|
25 | 26 |
for(JsonElement obj: entitlements) { |
26 | 27 |
Matcher matcher = Pattern.compile(regex).matcher(obj.getAsString()); |
27 | 28 |
if (matcher.find()) { |
Also available in: Unified diff
scopes now read from properties + get refresh tokens delets the old ones.