Skip to content

Commit

Permalink
Fix links in Readme.md
Browse files Browse the repository at this point in the history
Add a link t FAQ in Readme.md
Returning default value eidas1 if acr_values is not set.

Signed-off-by: Arnault <[email protected]>
  • Loading branch information
ArnaultMICHEL authored and micedre committed Nov 19, 2019
1 parent 71c5ac5 commit 185aed5
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
5 changes: 5 additions & 0 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ a.zocial.franceconnect-particulier span{
}
```

## FAQ

[FAQ](FAQ.md)

## How to contribute

[See here](CONTRIBUTING.en.md)

5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Extension [keycloak](https://www.keycloak.org) pour faciliter l'usage de France
* ajout de la vérification de signature (basée sur le client-secret)
* ajout d'un theme pour afficher les boutons france connect
* meilleure gestion du logout (contourne https://issues.jboss.org/browse/KEYCLOAK-7209)
* gestion du niveau d'authentification dans la demande d'autorisation ( cf [communication FranceConnect] (https://dev.entrouvert.org/issues/34448) )
* gestion du niveau d'authentification dans la demande d'autorisation ( cf [communication FranceConnect](https://dev.entrouvert.org/issues/34448) )

## Utilisation

Expand Down Expand Up @@ -68,6 +68,9 @@ a.zocial.franceconnect-particulier span{
}
```

## FAQ

[FAQ](FAQ.md)

## Comment contribuer

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package fr.insee.keycloak;

import javax.ws.rs.CookieParam;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.QueryParam;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ public void setIgnoreAbsentStateParameterLogout(boolean value){
getConfig().put("ignoreAbsentStateParameterLogout", String.valueOf(value));
}

public String getAcrValues() {
String acr_values = (String)getConfig().get("acr_values");
public String getAcrValues() {
String acr_values = (String)getConfig().get("acr_values");

return (acr_values == null) || (acr_values.isEmpty()) ? null : acr_values;
}
return (acr_values == null) || (acr_values.isEmpty()) ? "eidas1" : acr_values;
}

public void setAcrValues(String acrValues) {
getConfig().put("acr_values", acrValues);
}
public void setAcrValues(String acrValues) {
getConfig().put("acr_values", acrValues);
}

}

0 comments on commit 185aed5

Please sign in to comment.