Skip to content

Commit 07c83ec

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 07c83ec

File tree

1 file changed

+91
-2
lines changed

1 file changed

+91
-2
lines changed

etc/keycloak-realm.json

Lines changed: 91 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,94 @@
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+
"realmRoles" : [ "offline_access", "uma_authorization" ],
1818+
"enabled" : true,
1819+
"totp" : false,
1820+
"emailVerified" : true,
1821+
"firstName" : "Joe",
1822+
"lastName" : "Grandja",
1823+
"email" : "[email protected]",
1824+
"attributes" : {
1825+
"user_id" : [ "2" ]
1826+
},
1827+
"disableableCredentialTypes" : [ "password" ],
1828+
"requiredActions" : [ ],
1829+
"notBefore" : 0,
1830+
"access" : {
1831+
"manageGroupMembership" : true,
1832+
"view" : true,
1833+
"mapRoles" : true,
1834+
"impersonate" : true,
1835+
"manage" : true
1836+
}
1837+
},
1838+
{
1839+
"id" : "3b62fbf2-b0d5-49e4-9e39-0e18486fc8e0",
1840+
"createdTimestamp" : 1550866796632,
1841+
"username" : "josh",
1842+
"credentials" : [{
1843+
"value" : "password",
1844+
"type" : "password"
1845+
}],
1846+
"realmRoles" : [ "offline_access", "uma_authorization" ],
1847+
"enabled" : true,
1848+
"totp" : false,
1849+
"emailVerified" : true,
1850+
"firstName" : "Josh",
1851+
"lastName" : "Cummings",
1852+
"email" : "[email protected]",
1853+
"attributes" : {
1854+
"user_id" : [ "3" ]
1855+
},
1856+
"disableableCredentialTypes" : [ "password" ],
1857+
"requiredActions" : [ ],
1858+
"notBefore" : 0,
1859+
"access" : {
1860+
"manageGroupMembership" : true,
1861+
"view" : true,
1862+
"mapRoles" : true,
1863+
"impersonate" : true,
1864+
"manage" : true
1865+
}
1866+
},
1867+
{
1868+
"id" : "998182b8-a3a5-436f-a3bf-ea516a9720f3",
1869+
"createdTimestamp" : 1550866246872,
1870+
"username" : "rob",
1871+
"credentials" : [{
1872+
"value" : "password",
1873+
"type" : "password"
1874+
}],
1875+
"realmRoles" : [ "offline_access", "uma_authorization" ],
1876+
"enabled" : true,
1877+
"totp" : false,
1878+
"emailVerified" : true,
1879+
"firstName" : "Rob",
1880+
"lastName" : "Winch",
1881+
"email" : "[email protected]",
1882+
"attributes" : {
1883+
"user_id" : [ "1" ]
1884+
},
1885+
"disableableCredentialTypes" : [ "password" ],
1886+
"requiredActions" : [ ],
1887+
"notBefore" : 0,
1888+
"access" : {
1889+
"manageGroupMembership" : true,
1890+
"view" : true,
1891+
"mapRoles" : true,
1892+
"impersonate" : true,
1893+
"manage" : true
1894+
}
1895+
}
1896+
]
18081897
}

0 commit comments

Comments
 (0)