BAEL-7704 : (CONFIGURATION)

format resources
This commit is contained in:
ch4mpy 2024-04-21 16:38:05 -10:00
parent eb4996272b
commit f80faa08c8
8 changed files with 2553 additions and 2033 deletions

View File

@ -1,50 +1,62 @@
{ {
"realm" : "baeldung", "realm": "baeldung",
"users" : [ { "users": [
"id" : "bb83bd5b-b895-49aa-b62e-fde8ff8d5e64", {
"username" : "authorized", "id": "bb83bd5b-b895-49aa-b62e-fde8ff8d5e64",
"firstName" : "authorized", "username": "authorized",
"lastName" : "user", "firstName": "authorized",
"email" : "authorized@baeldung.gg", "lastName": "user",
"emailVerified" : true, "email": "authorized@baeldung.gg",
"createdTimestamp" : 1713615702990, "emailVerified": true,
"enabled" : true, "createdTimestamp": 1713615702990,
"totp" : false, "enabled": true,
"credentials" : [ { "totp": false,
"id" : "23d3b6ce-fa3c-4f6e-9b09-e7b3cefa00f6", "credentials": [
"type" : "password", {
"userLabel" : "My password", "id": "23d3b6ce-fa3c-4f6e-9b09-e7b3cefa00f6",
"createdDate" : 1713615715678, "type": "password",
"secretData" : "{\"value\":\"lCZEOiVbCynSkCWiWe67/5/PybB+Om5mhi6SynpGFPB+r2b+QEKNYsB7ibO2f1ur9UB2aMO7jfoBYQdTJMcHbQ==\",\"salt\":\"hrIbqMOt0L7PPEYh/PsLNQ==\",\"additionalParameters\":{}}", "userLabel": "My password",
"credentialData" : "{\"hashIterations\":210000,\"algorithm\":\"pbkdf2-sha512\",\"additionalParameters\":{}}" "createdDate": 1713615715678,
} ], "secretData": "{\"value\":\"lCZEOiVbCynSkCWiWe67/5/PybB+Om5mhi6SynpGFPB+r2b+QEKNYsB7ibO2f1ur9UB2aMO7jfoBYQdTJMcHbQ==\",\"salt\":\"hrIbqMOt0L7PPEYh/PsLNQ==\",\"additionalParameters\":{}}",
"disableableCredentialTypes" : [ ], "credentialData": "{\"hashIterations\":210000,\"algorithm\":\"pbkdf2-sha512\",\"additionalParameters\":{}}"
"requiredActions" : [ ], }
"realmRoles" : [ "AUTHORIZED_PERSONNEL", "default-roles-baeldung" ], ],
"notBefore" : 0, "disableableCredentialTypes": [],
"groups" : [ ] "requiredActions": [],
}, { "realmRoles": [
"id" : "d205d854-547c-43cf-a02d-fd6c385b128b", "AUTHORIZED_PERSONNEL",
"username" : "forbidden", "default-roles-baeldung"
"firstName" : "forbidden", ],
"lastName" : "user", "notBefore": 0,
"email" : "forbidden@baeldung.gg", "groups": []
"emailVerified" : true, },
"createdTimestamp" : 1713615781285, {
"enabled" : true, "id": "d205d854-547c-43cf-a02d-fd6c385b128b",
"totp" : false, "username": "forbidden",
"credentials" : [ { "firstName": "forbidden",
"id" : "2fa8244c-fba9-43d9-ab4d-80804ca26f6f", "lastName": "user",
"type" : "password", "email": "forbidden@baeldung.gg",
"userLabel" : "My password", "emailVerified": true,
"createdDate" : 1713615795357, "createdTimestamp": 1713615781285,
"secretData" : "{\"value\":\"sOUpOdi8yf31YbMEub+tAF7N55QHjrPjg48mO3/C1zGaAxLUYdLodf4upuy6w7eBuRrFaVa1m4mRe6wkWtmLIw==\",\"salt\":\"OMbZn6ojNyZdp6/k/72B/A==\",\"additionalParameters\":{}}", "enabled": true,
"credentialData" : "{\"hashIterations\":210000,\"algorithm\":\"pbkdf2-sha512\",\"additionalParameters\":{}}" "totp": false,
} ], "credentials": [
"disableableCredentialTypes" : [ ], {
"requiredActions" : [ ], "id": "2fa8244c-fba9-43d9-ab4d-80804ca26f6f",
"realmRoles" : [ "default-roles-baeldung" ], "type": "password",
"notBefore" : 0, "userLabel": "My password",
"groups" : [ ] "createdDate": 1713615795357,
} ] "secretData": "{\"value\":\"sOUpOdi8yf31YbMEub+tAF7N55QHjrPjg48mO3/C1zGaAxLUYdLodf4upuy6w7eBuRrFaVa1m4mRe6wkWtmLIw==\",\"salt\":\"OMbZn6ojNyZdp6/k/72B/A==\",\"additionalParameters\":{}}",
"credentialData": "{\"hashIterations\":210000,\"algorithm\":\"pbkdf2-sha512\",\"additionalParameters\":{}}"
}
],
"disableableCredentialTypes": [],
"requiredActions": [],
"realmRoles": [
"default-roles-baeldung"
],
"notBefore": 0,
"groups": []
}
]
} }

View File

@ -1,61 +1,61 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.baeldung.spring-security-modules.testing</groupId> <groupId>com.baeldung.spring-security-modules.testing</groupId>
<artifactId>reactive-resource-server</artifactId> <artifactId>reactive-resource-server</artifactId>
<name>reactive-resource-server</name> <name>reactive-resource-server</name>
<description>Demo project for Spring Boot reactive resource-server</description> <description>Demo project for Spring Boot reactive resource-server</description>
<parent> <parent>
<groupId>com.baeldung</groupId> <groupId>com.baeldung</groupId>
<artifactId>spring-security-oauth2-testing</artifactId> <artifactId>spring-security-oauth2-testing</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
<relativePath>..</relativePath> <relativePath>..</relativePath>
</parent> </parent>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-oauth2-resource-server</artifactId> <artifactId>spring-boot-starter-oauth2-resource-server</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webflux</artifactId> <artifactId>spring-boot-starter-webflux</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.projectlombok</groupId> <groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId> <artifactId>lombok</artifactId>
<optional>true</optional> <optional>true</optional>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId> <artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.c4-soft.springaddons</groupId> <groupId>com.c4-soft.springaddons</groupId>
<artifactId>spring-addons-oauth2-test</artifactId> <artifactId>spring-addons-oauth2-test</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
<configuration> <configuration>
<excludes> <excludes>
<exclude> <exclude>
<groupId>org.projectlombok</groupId> <groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId> <artifactId>lombok</artifactId>
</exclude> </exclude>
</excludes> </excludes>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
</project> </project>

View File

@ -1,15 +1,15 @@
{ {
"iss": "https://localhost:8443/realms/master", "iss": "https://localhost:8443/realms/master",
"sub": "281c4558-550c-413b-9972-2d2e5bde6b9b", "sub": "281c4558-550c-413b-9972-2d2e5bde6b9b",
"iat": 1695992542, "iat": 1695992542,
"exp": 1695992642, "exp": 1695992642,
"preferred_username": "ch4mpy", "preferred_username": "ch4mpy",
"realm_access": { "realm_access": {
"roles": [ "roles": [
"admin", "admin",
"ROLE_AUTHORIZED_PERSONNEL" "ROLE_AUTHORIZED_PERSONNEL"
] ]
}, },
"email": "ch4mp@c4-soft.com", "email": "ch4mp@c4-soft.com",
"scope": "openid email" "scope": "openid email"
} }

View File

@ -1,15 +1,15 @@
{ {
"iss": "https://localhost:8443/realms/master", "iss": "https://localhost:8443/realms/master",
"sub": "2d2e5bde6b9b-550c-413b-9972-281c4558", "sub": "2d2e5bde6b9b-550c-413b-9972-281c4558",
"iat": 1695992551, "iat": 1695992551,
"exp": 1695992651, "exp": 1695992651,
"preferred_username": "tonton-pirate", "preferred_username": "tonton-pirate",
"realm_access": { "realm_access": {
"roles": [ "roles": [
"uncle", "uncle",
"PIRATE" "PIRATE"
] ]
}, },
"email": "tonton-pirate@c4-soft.com", "email": "tonton-pirate@c4-soft.com",
"scope": "openid email" "scope": "openid email"
} }

View File

@ -1,61 +1,61 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.baeldung.spring-security-modules.testing</groupId> <groupId>com.baeldung.spring-security-modules.testing</groupId>
<artifactId>servlet-resource-server</artifactId> <artifactId>servlet-resource-server</artifactId>
<name>servlet-resource-server</name> <name>servlet-resource-server</name>
<description>Demo project for Spring Boot servlet resource-server</description> <description>Demo project for Spring Boot servlet resource-server</description>
<parent> <parent>
<groupId>com.baeldung</groupId> <groupId>com.baeldung</groupId>
<artifactId>spring-security-oauth2-testing</artifactId> <artifactId>spring-security-oauth2-testing</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
<relativePath>..</relativePath> <relativePath>..</relativePath>
</parent> </parent>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-oauth2-resource-server</artifactId> <artifactId>spring-boot-starter-oauth2-resource-server</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId> <artifactId>spring-boot-starter-web</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.projectlombok</groupId> <groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId> <artifactId>lombok</artifactId>
<optional>true</optional> <optional>true</optional>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId> <artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.c4-soft.springaddons</groupId> <groupId>com.c4-soft.springaddons</groupId>
<artifactId>spring-addons-oauth2-test</artifactId> <artifactId>spring-addons-oauth2-test</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
<configuration> <configuration>
<excludes> <excludes>
<exclude> <exclude>
<groupId>org.projectlombok</groupId> <groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId> <artifactId>lombok</artifactId>
</exclude> </exclude>
</excludes> </excludes>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
</project> </project>

View File

@ -1,15 +1,15 @@
{ {
"iss": "https://localhost:8443/realms/master", "iss": "https://localhost:8443/realms/master",
"sub": "281c4558-550c-413b-9972-2d2e5bde6b9b", "sub": "281c4558-550c-413b-9972-2d2e5bde6b9b",
"iat": 1695992542, "iat": 1695992542,
"exp": 1695992642, "exp": 1695992642,
"preferred_username": "ch4mpy", "preferred_username": "ch4mpy",
"realm_access": { "realm_access": {
"roles": [ "roles": [
"admin", "admin",
"ROLE_AUTHORIZED_PERSONNEL" "ROLE_AUTHORIZED_PERSONNEL"
] ]
}, },
"email": "ch4mp@c4-soft.com", "email": "ch4mp@c4-soft.com",
"scope": "openid email" "scope": "openid email"
} }

View File

@ -1,15 +1,15 @@
{ {
"iss": "https://localhost:8443/realms/master", "iss": "https://localhost:8443/realms/master",
"sub": "2d2e5bde6b9b-550c-413b-9972-281c4558", "sub": "2d2e5bde6b9b-550c-413b-9972-281c4558",
"iat": 1695992551, "iat": 1695992551,
"exp": 1695992651, "exp": 1695992651,
"preferred_username": "tonton-pirate", "preferred_username": "tonton-pirate",
"realm_access": { "realm_access": {
"roles": [ "roles": [
"uncle", "uncle",
"PIRATE" "PIRATE"
] ]
}, },
"email": "tonton-pirate@c4-soft.com", "email": "tonton-pirate@c4-soft.com",
"scope": "openid email" "scope": "openid email"
} }