Fixed bugs; I can get tokens now. User approval handler seems to be working corrrectly.
							parent
							
								
									49cb8bd0cb
								
							
						
					
					
						commit
						617e9568d8
					
				|  | @ -60,8 +60,8 @@ public class ClientDetailsEntity implements ClientDetails { | |||
| 	/** Our own fields **/ | ||||
| 	private String clientDescription = "";//this is ours
 | ||||
| 	private Boolean allowRefresh = false; // do we allow refresh tokens for this client?
 | ||||
| 	private Boolean allowMultipleAccessTokens; // do we allow multiple access tokens, or not?
 | ||||
| 	private Boolean reuseRefreshToken; // do we let someone reuse a refresh token?
 | ||||
| 	private Boolean allowMultipleAccessTokens = false; // do we allow multiple access tokens, or not?
 | ||||
| 	private Boolean reuseRefreshToken = false; // do we let someone reuse a refresh token?
 | ||||
| 	 | ||||
| 	/** Fields from ClientDetails interface **/ | ||||
|     private String clientId = ""; | ||||
|  | @ -104,7 +104,7 @@ public class ClientDetailsEntity implements ClientDetails { | |||
| 	private JweAlgorithms idTokenEncryptedResponseInt; | ||||
| 	 | ||||
| 	private Integer defaultMaxAge; | ||||
| 	private Boolean requireAuthTime; | ||||
| 	private Boolean requireAuthTime = false; | ||||
| 	private String defaultACR; | ||||
| 	 | ||||
| 	 | ||||
|  |  | |||
|  | @ -124,7 +124,7 @@ public class OAuth2AccessTokenEntity implements OAuth2AccessToken { | |||
|      * @return the authentication | ||||
|      */ | ||||
| 	@ManyToOne | ||||
| 	@JoinColumn(name = "owner_id") | ||||
| 	@JoinColumn(name = "auth_holder_id") | ||||
|     public AuthenticationHolder getAuthenticationHolder() { | ||||
|     	return authenticationHolder; | ||||
|     } | ||||
|  |  | |||
|  | @ -165,9 +165,10 @@ public class ApprovedSite { | |||
|      */ | ||||
|     @ElementCollection(fetch = FetchType.EAGER) | ||||
|     @CollectionTable( | ||||
|     		name="allowed_scopes", | ||||
|     		name="allowed_scope", | ||||
|     		joinColumns=@JoinColumn(name="owner_id") | ||||
|     ) | ||||
|     @Column(name="allowed_scope") | ||||
|     public Set<String> getAllowedScopes() { | ||||
|     	return allowedScopes; | ||||
|     } | ||||
|  |  | |||
|  | @ -5,6 +5,6 @@ CREATE TABLE access_token ( | |||
| 	token_type VARCHAR(256), | ||||
| 	refresh_token_id VARCHAR(256), | ||||
| 	client_id VARCHAR(256), | ||||
| 	authentication LONGBLOB, | ||||
| 	auth_holder_id VARCHAR(256), | ||||
| 	id_token_string VARCHAR(4096) | ||||
| ); | ||||
		Loading…
	
		Reference in New Issue
	
	 Amanda Anganes
						Amanda Anganes