-
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: changes in admin-ui plugin to allow agama-developer-studio to u…
…se its OAuth2 apis #3085 (#3298) * feat: changes in admin-ui plugin to allow agama-developer-studio to use its OAuth2 apis #3085 * feat: changes in admin-ui plugin to allow agama-developer-studio to use its OAuth2 apis #3085
- Loading branch information
Showing
12 changed files
with
279 additions
and
94 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
18 changes: 18 additions & 0 deletions
18
jans-auth-server/model/src/main/java/io/jans/as/model/config/adminui/MainSettings.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,18 @@ | ||
package io.jans.as.model.config.adminui; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class MainSettings { | ||
|
||
private OIDCSettings oidcConfig; | ||
|
||
public OIDCSettings getOidcConfig() { | ||
return oidcConfig; | ||
} | ||
|
||
public void setOidcConfig(OIDCSettings oidcConfig) { | ||
this.oidcConfig = oidcConfig; | ||
} | ||
} |
99 changes: 99 additions & 0 deletions
99
jans-auth-server/model/src/main/java/io/jans/as/model/config/adminui/OIDCClientSettings.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,99 @@ | ||
package io.jans.as.model.config.adminui; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.util.List; | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class OIDCClientSettings { | ||
|
||
private String opHost; | ||
private String clientId; | ||
private String clientSecret; | ||
private String tokenEndpoint; | ||
private String redirectUri; | ||
private String postLogoutUri; | ||
private String frontchannelLogoutUri; | ||
private List<String> scopes; | ||
private List<String> acrValues; | ||
|
||
public OIDCClientSettings() { | ||
//Do not remove | ||
} | ||
|
||
public OIDCClientSettings(String opHost, String clientId, String clientSecret) { | ||
|
||
this.opHost = opHost; | ||
this.clientId = clientId; | ||
this.clientSecret = clientSecret; | ||
} | ||
|
||
public OIDCClientSettings(String opHost, String clientId, String clientSecret, String tokenEndpoint) { | ||
|
||
this.opHost = opHost; | ||
this.clientId = clientId; | ||
this.clientSecret = clientSecret; | ||
this.tokenEndpoint = tokenEndpoint; | ||
} | ||
|
||
@JsonInclude(JsonInclude.Include.NON_EMPTY) | ||
public String getOpHost() { | ||
return opHost; | ||
} | ||
|
||
@JsonInclude(JsonInclude.Include.NON_EMPTY) | ||
public String getClientId() { | ||
return clientId; | ||
} | ||
|
||
@JsonInclude(JsonInclude.Include.NON_EMPTY) | ||
public String getClientSecret() { | ||
return clientSecret; | ||
} | ||
|
||
public String getTokenEndpoint() { | ||
return tokenEndpoint; | ||
} | ||
|
||
public String getRedirectUri() { | ||
return redirectUri; | ||
} | ||
|
||
public void setRedirectUri(String redirectUri) { | ||
this.redirectUri = redirectUri; | ||
} | ||
|
||
public String getPostLogoutUri() { | ||
return postLogoutUri; | ||
} | ||
|
||
public void setPostLogoutUri(String postLogoutUri) { | ||
this.postLogoutUri = postLogoutUri; | ||
} | ||
|
||
public List<String> getScopes() { | ||
return scopes; | ||
} | ||
|
||
public void setScopes(List<String> scopes) { | ||
this.scopes = scopes; | ||
} | ||
|
||
public List<String> getAcrValues() { | ||
return acrValues; | ||
} | ||
|
||
public void setAcrValues(List<String> acrValues) { | ||
this.acrValues = acrValues; | ||
} | ||
|
||
public String getFrontchannelLogoutUri() { | ||
return frontchannelLogoutUri; | ||
} | ||
|
||
public void setFrontchannelLogoutUri(String frontchannelLogoutUri) { | ||
this.frontchannelLogoutUri = frontchannelLogoutUri; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
jans-auth-server/model/src/main/java/io/jans/as/model/config/adminui/OIDCSettings.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,28 @@ | ||
package io.jans.as.model.config.adminui; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.util.List; | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class OIDCSettings { | ||
|
||
private OIDCClientSettings authServerClient; | ||
private OIDCClientSettings tokenServerClient; | ||
|
||
public OIDCClientSettings getAuthServerClient() { | ||
return authServerClient; | ||
} | ||
|
||
public void setAuthServerClient(OIDCClientSettings authServerClient) { | ||
this.authServerClient = authServerClient; | ||
} | ||
|
||
public OIDCClientSettings getTokenServerClient() { | ||
return tokenServerClient; | ||
} | ||
|
||
public void setTokenServerClient(OIDCClientSettings tokenServerClient) { | ||
this.tokenServerClient = tokenServerClient; | ||
} | ||
} |
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
Oops, something went wrong.