-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(jans-auth-server): allow return of custom authz endpoint request…
… parameters to rp in response
- Loading branch information
Showing
8 changed files
with
131 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
...del/src/main/java/io/jans/as/model/configuration/AuthorizationRequestCustomParameter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* | ||
* Janssen Project software is available under the Apache License (2004). See http://www.apache.org/licenses/ for full text. | ||
* | ||
* Copyright (c) 2020, Janssen Project | ||
*/ | ||
|
||
package io.jans.as.model.configuration; | ||
|
||
import io.jans.util.exception.ConfigurationException; | ||
import org.apache.commons.lang.StringUtils; | ||
|
||
/** | ||
* @author Javier Rojas Blum | ||
* @version February 2, 2022 | ||
*/ | ||
public class AuthorizationRequestCustomParameter { | ||
|
||
private String paramName; | ||
private Boolean returnInResponse; | ||
|
||
private static final Boolean DEFAULT_RETURN_IN_RESPONSE = false; | ||
|
||
public String getParamName() { | ||
if (StringUtils.isEmpty(paramName)) { | ||
throw new ConfigurationException("The param name in a AuthorizationRequestCustomParameter is empty"); | ||
} | ||
return paramName; | ||
} | ||
|
||
public void setParamName(String paramName) { | ||
this.paramName = paramName; | ||
} | ||
|
||
public Boolean getReturnInResponse() { | ||
if (returnInResponse == null) { | ||
returnInResponse = DEFAULT_RETURN_IN_RESPONSE; | ||
} | ||
return returnInResponse; | ||
} | ||
|
||
public void setReturnInResponse(Boolean returnInResponse) { | ||
this.returnInResponse = returnInResponse; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8bbd659
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#344