Skip to content

Commit 52181af

Browse files
committed
Include Credentials in Realm Configuration
This is handy so that the users rob, joe, and josh are already added and so the spring-security client-secret stays consistent.
1 parent 210832d commit 52181af

File tree

1 file changed

+88
-2
lines changed

1 file changed

+88
-2
lines changed

etc/keycloak-realm.json

Lines changed: 88 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@
671671
"surrogateAuthRequired": false,
672672
"enabled": true,
673673
"clientAuthenticatorType": "client-secret",
674-
"secret": "**********",
674+
"secret": "bfbd9f62-02ce-4638-a370-80d45514bd0a",
675675
"redirectUris": [
676676
"http://localhost:8080/login/oauth2/code/keycloak",
677677
"http://localhost:8080/authorize/oauth2/code/keycloak"
@@ -1804,5 +1804,91 @@
18041804
"offlineSessionMaxLifespanEnabled": "false"
18051805
},
18061806
"keycloakVersion": "4.1.0.Final",
1807-
"userManagedAccessAllowed": false
1807+
"userManagedAccessAllowed": false,
1808+
"users" : [
1809+
{
1810+
"id" : "c949272c-56a8-4437-98f7-8d976b6d88bd",
1811+
"createdTimestamp" : 1550866753471,
1812+
"username" : "joe",
1813+
"credentials" : [{
1814+
"value" : "password",
1815+
"type" : "password"
1816+
}],
1817+
"enabled" : true,
1818+
"totp" : false,
1819+
"emailVerified" : true,
1820+
"firstName" : "Joe",
1821+
"lastName" : "Grandja",
1822+
"email" : "[email protected]",
1823+
"attributes" : {
1824+
"user_id" : [ "2" ]
1825+
},
1826+
"disableableCredentialTypes" : [ "password" ],
1827+
"requiredActions" : [ ],
1828+
"notBefore" : 0,
1829+
"access" : {
1830+
"manageGroupMembership" : true,
1831+
"view" : true,
1832+
"mapRoles" : true,
1833+
"impersonate" : true,
1834+
"manage" : true
1835+
}
1836+
},
1837+
{
1838+
"id" : "3b62fbf2-b0d5-49e4-9e39-0e18486fc8e0",
1839+
"createdTimestamp" : 1550866796632,
1840+
"username" : "josh",
1841+
"credentials" : [{
1842+
"value" : "password",
1843+
"type" : "password"
1844+
}],
1845+
"enabled" : true,
1846+
"totp" : false,
1847+
"emailVerified" : true,
1848+
"firstName" : "Josh",
1849+
"lastName" : "Cummings",
1850+
"email" : "[email protected]",
1851+
"attributes" : {
1852+
"user_id" : [ "3" ]
1853+
},
1854+
"disableableCredentialTypes" : [ "password" ],
1855+
"requiredActions" : [ ],
1856+
"notBefore" : 0,
1857+
"access" : {
1858+
"manageGroupMembership" : true,
1859+
"view" : true,
1860+
"mapRoles" : true,
1861+
"impersonate" : true,
1862+
"manage" : true
1863+
}
1864+
},
1865+
{
1866+
"id" : "998182b8-a3a5-436f-a3bf-ea516a9720f3",
1867+
"createdTimestamp" : 1550866246872,
1868+
"username" : "rob",
1869+
"credentials" : [{
1870+
"value" : "password",
1871+
"type" : "password"
1872+
}],
1873+
"enabled" : true,
1874+
"totp" : false,
1875+
"emailVerified" : true,
1876+
"firstName" : "Rob",
1877+
"lastName" : "Winch",
1878+
"email" : "[email protected]",
1879+
"attributes" : {
1880+
"user_id" : [ "1" ]
1881+
},
1882+
"disableableCredentialTypes" : [ "password" ],
1883+
"requiredActions" : [ ],
1884+
"notBefore" : 0,
1885+
"access" : {
1886+
"manageGroupMembership" : true,
1887+
"view" : true,
1888+
"mapRoles" : true,
1889+
"impersonate" : true,
1890+
"manage" : true
1891+
}
1892+
}
1893+
]
18081894
}

0 commit comments

Comments
 (0)