Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
App Blocks
Commits
de06e8c6
Commit
de06e8c6
authored
May 09, 2017
by
Matija Obreza
Browse files
Default length required for AccessToken persistence (hsqldb)
parent
d91eef4a
Changes
2
Hide whitespace changes
Inline
Side-by-side
security/src/main/java/org/genesys/blocks/oauth/model/AccessToken.java
View file @
de06e8c6
...
...
@@ -32,16 +32,19 @@ public class AccessToken implements Serializable {
@Id
@Column
(
length
=
100
)
private
String
tokenId
;
@Column
(
unique
=
true
)
@Column
(
unique
=
true
,
length
=
100
)
private
String
authenticationId
;
@Lob
@Column
(
length
=
20
*
1024
)
private
byte
[]
token
;
@Column
(
length
=
100
)
private
String
username
;
@Column
(
length
=
100
)
private
String
clientId
;
@Lob
@Column
(
length
=
20
*
1024
)
private
byte
[]
authentication
;
@Column
(
length
=
100
)
private
String
refreshToken
;
public
String
getId
()
{
...
...
security/src/main/java/org/genesys/blocks/oauth/model/RefreshToken.java
View file @
de06e8c6
...
...
@@ -34,9 +34,11 @@ public class RefreshToken implements Serializable {
private
String
tokenId
;
@Lob
@Column
(
length
=
20
*
1024
)
private
byte
[]
token
;
@Lob
@Column
(
length
=
20
*
1024
)
private
byte
[]
authentication
;
public
void
setTokenId
(
final
String
tokenId
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment