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 reuseRefreshToken = false; // do we let someone reuse a refresh token?
|
||||
private Integer idTokenValiditySeconds = 0; //timeout for id tokens
|
||||
private Boolean dynamicallyRegistered = false;
|
||||
|
||||
/** Fields from ClientDetails interface **/
|
||||
private String clientId = "";
|
||||
|
@ -369,10 +370,26 @@ public class ClientDetailsEntity implements ClientDetails {
|
|||
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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* If the clientSecret is not null, then it is always required.
|
||||
*/
|
||||
|
|
|
@ -57,6 +57,7 @@ CREATE TABLE client_details (
|
|||
allow_multiple_access_tokens TINYINT,
|
||||
reuse_refresh_tokens TINYINT,
|
||||
id_token_validity_seconds BIGINT,
|
||||
dynamically_registered TINYINT,
|
||||
|
||||
client_id VARCHAR(256),
|
||||
client_secret VARCHAR(2000),
|
||||
|
|
Loading…
Reference in New Issue