-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace address with street1 and street2 for better i18n
- Loading branch information
Showing
5 changed files
with
15 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,8 @@ An example (from the Standalone app looks like this): | |
"birthdate": 1617219803996, | ||
"email": "[email protected]", | ||
"phoneNumber": "0803199999", | ||
"street": "Bahnhofstraße 1", | ||
"street1": "Bahnhofstraße 1", | ||
"street2": "", | ||
"city": "Rosenheim", | ||
"zip": "83022" , | ||
"country": "de", | ||
|
@@ -64,7 +65,8 @@ The following list shows all possible fields, most of which are optional. Please | |
"birthdate": "timestamp in milliseconds", | ||
"email": "[email protected] *required or phoneNumber", | ||
"phoneNumber": "0803199999 *required or E-Mail", | ||
"street": "Bahnhofstraße 1", | ||
"street1": "Bahnhofstraße 1", | ||
"street2": "", | ||
"city": "Rosenheim", | ||
"zip": "zip code", | ||
"country": "2 letter Alpha-2 country code as defined in ISO 3166" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,8 @@ object Standalone extends App { | |
phoneNumber = Some("0803199999"), | ||
email = Some("[email protected]"), | ||
idCardNumber = Some("LFC123ABC"), | ||
address = Some("Bahnhofstraße 1"), | ||
street1 = Some("Bahnhofstraße 1"), | ||
street2 = Some("Bahnhofstraße 1"), | ||
zip = Some("83022"), | ||
city = Some("Rosenheim"), | ||
country = Some("Germany") | ||
|
@@ -51,17 +52,17 @@ object Standalone extends App { | |
val token = JWTSigner.signWithRSA(claims, key) | ||
println("\nSigned Token with this Key is:") | ||
println(token) | ||
println("\nParsed Content from validated Token is") | ||
println("\nParsed content from validated Token is:") | ||
println(SimpleRSAValidator.validateWithRSA(token.get, key).get) | ||
|
||
println(key.jwkJson.toString()) | ||
|
||
println("\nNow try to sign with a Deserialized PEM Key") | ||
println("\nNow try to sign with a Deserialized PEM Key:") | ||
val token2 = JWTSigner.signWithRSA(claims, RSAKey.fromPEM(key.privateKeyPEM)) | ||
println("\nSecond JWT Token is:") | ||
println("\nThe second JWT Token is:") | ||
println(token2) | ||
|
||
println("\nPrivate Key Hash for Signing Endpoint") | ||
println("\nPrivate Key Hash for signing endpoint:") | ||
println(key.privateKeySHA512) | ||
|
||
println("\n\nNow generating a QR Code") | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,8 @@ class JWTSignerSpec extends AnyWordSpec with Matchers with ScalaCheckPropertyChe | |
phoneNumber = Some("0803199999"), | ||
email = Some("[email protected]"), | ||
idCardNumber = Some("LFC123ABC"), | ||
address = Some("Bahnhofstraße 1"), | ||
street1 = Some("Bahnhofstraße 1"), | ||
street2 = Some("c/o innFactory"), | ||
zip = Some("83022"), | ||
city = Some("Rosenheim"), | ||
country = Some("Germany") | ||
|