forked from jhipster/generator-jhipster-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add jwt reflect and resource config to support jwt authentication type
closes jhipster#48
- Loading branch information
Showing
6 changed files
with
140 additions
and
0 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
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
38 changes: 38 additions & 0 deletions
38
generators/server/templates/src/main/resources/META-INF/native-image/jwt/reflect-config.json
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,38 @@ | ||
[ | ||
{ | ||
"name": "io.jsonwebtoken.impl.compression.GzipCompressionCodec", | ||
"methods": [ | ||
{ | ||
"name": "<init>", | ||
"parameterTypes": [] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "io.jsonwebtoken.impl.compression.DeflateCompressionCodec", | ||
"methods": [ | ||
{ | ||
"name": "<init>", | ||
"parameterTypes": [] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "io.jsonwebtoken.impl.DefaultJwtParserBuilder", | ||
"methods": [ | ||
{ | ||
"name": "<init>", | ||
"parameterTypes": [] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "io.jsonwebtoken.impl.DefaultJwtBuilder", | ||
"methods": [ | ||
{ | ||
"name": "<init>", | ||
"parameterTypes": [] | ||
} | ||
] | ||
} | ||
] |
13 changes: 13 additions & 0 deletions
13
...rators/server/templates/src/main/resources/META-INF/native-image/jwt/resource-config.json
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,13 @@ | ||
{ | ||
"resources": [ | ||
{ | ||
"pattern": "META-INF/services/io.jsonwebtoken.CompressionCodec" | ||
}, | ||
{ | ||
"pattern": "META-INF/services/io.jsonwebtoken.io.Deserializer" | ||
}, | ||
{ | ||
"pattern": "META-INF/services/io.jsonwebtoken.io.Serializer" | ||
} | ||
] | ||
} |
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,36 @@ | ||
application { | ||
config { | ||
applicationType monolith | ||
cacheProvider no | ||
creationTimestamp 1632872179205 | ||
devDatabaseType h2Disk | ||
enableHibernateCache false | ||
enableTranslation false | ||
testFrameworks [cypress] | ||
} | ||
|
||
entities Blog, Post, Tag | ||
} | ||
|
||
entity Blog { | ||
name String required minlength(3) | ||
handle String required minlength(2) | ||
} | ||
|
||
entity Post { | ||
title String required | ||
content TextBlob required | ||
date Instant required | ||
} | ||
|
||
entity Tag { | ||
name String required minlength(2) | ||
} | ||
|
||
relationship ManyToOne { | ||
Post{blog(name)} to Blog | ||
} | ||
|
||
relationship ManyToMany { | ||
Post{tag(name)} to Tag{entry} | ||
} |
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,35 @@ | ||
application { | ||
config { | ||
applicationType monolith | ||
authenticationType oauth2 | ||
creationTimestamp 1632872179205 | ||
reactive true | ||
enableTranslation false | ||
testFrameworks [cypress] | ||
} | ||
|
||
entities Blog, Post, Tag | ||
} | ||
|
||
entity Blog { | ||
name String required minlength(3) | ||
handle String required minlength(2) | ||
} | ||
|
||
entity Post { | ||
title String required | ||
content TextBlob required | ||
date Instant required | ||
} | ||
|
||
entity Tag { | ||
name String required minlength(2) | ||
} | ||
|
||
relationship ManyToOne { | ||
Post{blog(name)} to Blog | ||
} | ||
|
||
relationship ManyToMany { | ||
Post{tag(name)} to Tag{entry} | ||
} |