-
Notifications
You must be signed in to change notification settings - Fork 71
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): automatically provision scopes if they are pr…
- Loading branch information
Showing
8 changed files
with
279 additions
and
11 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
34 changes: 34 additions & 0 deletions
34
jans-auth-server/model/src/main/java/io/jans/as/model/configuration/TrustedIssuerConfig.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,34 @@ | ||
package io.jans.as.model.configuration; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.io.Serializable; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
/** | ||
* @author Yuriy Z | ||
*/ | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class TrustedIssuerConfig implements Serializable { | ||
|
||
@JsonProperty("automaticallyGrantedScopes") | ||
private List<String> automaticallyGrantedScopes = new ArrayList<>(); | ||
|
||
public List<String> getAutomaticallyGrantedScopes() { | ||
if (automaticallyGrantedScopes == null) automaticallyGrantedScopes = new ArrayList<>(); | ||
return automaticallyGrantedScopes; | ||
} | ||
|
||
public void setAutomaticallyGrantedScopes(List<String> automaticallyGrantedScopes) { | ||
this.automaticallyGrantedScopes = automaticallyGrantedScopes; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "TrustedIssuerConfig{" + | ||
"automaticallyGrantedScopes=" + automaticallyGrantedScopes + | ||
'}'; | ||
} | ||
} |
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
Oops, something went wrong.