-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redirect-URI mit encoded Parametern führt zu "invalid request" #41
Comments
(but does not - at least with wildfly)
nicht nachvollziehbar mit Unit-Test TestAuthCodeFlow.testAuthCodeWithQueryParams |
(but does not - at least with wildfly)
Ein nicht eingeloggter Benutzer ruft die folgende URL auf:
http://localhost:8080/bestand/rest/v1/einspruenge/eckw/werbesperren?ort=Erlangen&strasse=Unter+den+Palmen+3&vorname=Maximilian&context=kundenwelt&nachname=Mustermann&land=DE&plz=91056
Der Redirect zum IDP erzeugt folgende URL:
http://localhost:8080/idp/api/auth?response_type=code&client_id=ecade&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2Fbestand%2Frest%2Fv1%2Feinspruenge%2Feckw%2Fwerbesperren%3Fort%3DErlangen%26strasse%3DUnter%2Bden%2BPalmen%2B3%26vorname%3DMaximilian%26context%3Dkundenwelt%26nachname%3DMustermann%26land%3DDE%26plz%3D91056
Hier werden wohl "zuviel" Parameter zerlegt, auch die von der redirect_uri - siehe AuthorizationRequest#parse:
params = {HashMap@35247} size = 13
0 = {HashMap$Node@35255} "strasse" -> "Unter den Palmen 3"
1 = {HashMap$Node@35256} "j_password" -> "ediTi0n01"
2 = {HashMap$Node@35257} "vorname" -> "Maximilian"
3 = {HashMap$Node@35258} "response_type" -> "code"
4 = {HashMap$Node@35259} "client_id" -> "ecade"
5 = {HashMap$Node@35260} "btnAnmelden" -> "Anmelden"
6 = {HashMap$Node@35261} "formlogin" -> "ja"
7 = {HashMap$Node@35262} "context" -> "kundenwelt"
8 = {HashMap$Node@35263} "nachname" -> "Mustermann"
9 = {HashMap$Node@35264} "land" -> "DE"
10 = {HashMap$Node@35265} "redirect_uri" -> "http://localhost:8080/bestand/rest/v1/einspruenge/eckw/werbesperren?ort"
11 = {HashMap$Node@35266} "j_username" -> "ecmanager"
12 = {HashMap$Node@35267} "plz" -> "91056"
Im weiteren Verlauf wird die Redirect-URI dann mit Leerzeichen erzeugt:
http://localhost:8080/bestand/rest/v1/einspruenge/eckw/werbesperren?ort=Erlangen&strasse=Unter den Palmen 3&vorname=Maximilian&context=kundenwelt&nachname=Mustermann&land=DE&plz=91056
The text was updated successfully, but these errors were encountered: