added field to indicate whether the client has been dynamically registered
parent
170036e0b8
commit
97d7bc9c13
|
@ -63,6 +63,7 @@ public class ClientDetailsEntity implements ClientDetails {
|
||||||
private Boolean allowMultipleAccessTokens = false; // do we allow multiple access tokens, or not?
|
private Boolean allowMultipleAccessTokens = false; // do we allow multiple access tokens, or not?
|
||||||
private Boolean reuseRefreshToken = false; // do we let someone reuse a refresh token?
|
private Boolean reuseRefreshToken = false; // do we let someone reuse a refresh token?
|
||||||
private Integer idTokenValiditySeconds = 0; //timeout for id tokens
|
private Integer idTokenValiditySeconds = 0; //timeout for id tokens
|
||||||
|
private Boolean dynamicallyRegistered = false;
|
||||||
|
|
||||||
/** Fields from ClientDetails interface **/
|
/** Fields from ClientDetails interface **/
|
||||||
private String clientId = "";
|
private String clientId = "";
|
||||||
|
@ -369,6 +370,22 @@ public class ClientDetailsEntity implements ClientDetails {
|
||||||
this.idTokenValiditySeconds = idTokenValiditySeconds;
|
this.idTokenValiditySeconds = idTokenValiditySeconds;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return the dynamicallyRegistered
|
||||||
|
*/
|
||||||
|
@Basic
|
||||||
|
@Column(name="dynamically_registered")
|
||||||
|
public Boolean isDynamicallyRegistered() {
|
||||||
|
return dynamicallyRegistered;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param dynamicallyRegistered the dynamicallyRegistered to set
|
||||||
|
*/
|
||||||
|
public void setDynamicallyRegistered(Boolean dynamicallyRegistered) {
|
||||||
|
this.dynamicallyRegistered = dynamicallyRegistered;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -57,6 +57,7 @@ CREATE TABLE client_details (
|
||||||
allow_multiple_access_tokens TINYINT,
|
allow_multiple_access_tokens TINYINT,
|
||||||
reuse_refresh_tokens TINYINT,
|
reuse_refresh_tokens TINYINT,
|
||||||
id_token_validity_seconds BIGINT,
|
id_token_validity_seconds BIGINT,
|
||||||
|
dynamically_registered TINYINT,
|
||||||
|
|
||||||
client_id VARCHAR(256),
|
client_id VARCHAR(256),
|
||||||
client_secret VARCHAR(2000),
|
client_secret VARCHAR(2000),
|
||||||
|
|
Loading…
Reference in New Issue