commit
5ad8dfe21c
2 changed files with 16 additions and 4 deletions
|
@ -19,9 +19,9 @@
|
||||||
"title": "Keycloak Documentation",
|
"title": "Keycloak Documentation",
|
||||||
"project": {
|
"project": {
|
||||||
"name": "Keycloak",
|
"name": "Keycloak",
|
||||||
"version": "3.0.0.CR1-SNAPSHOT",
|
"version": "SNAPSHOT",
|
||||||
"versionMvn": "3.0.0.CR1-SNAPSHOT",
|
"versionMvn": "SNAPSHOT",
|
||||||
"versionNpm": "3.0.0-cr.1"
|
"versionNpm": "SNAPSHOT"
|
||||||
},
|
},
|
||||||
"community": true,
|
"community": true,
|
||||||
"product": false,
|
"product": false,
|
||||||
|
|
|
@ -314,7 +314,19 @@ Returns true if the token has the given role for the resource (resource is optio
|
||||||
|
|
||||||
Loads the users profile.
|
Loads the users profile.
|
||||||
|
|
||||||
Returns promise to set functions to be invoked on success or error.
|
Returns promise to set functions to be invoked if the profile was loaded successfully, or if the profile could not be
|
||||||
|
loaded.
|
||||||
|
|
||||||
|
For example:
|
||||||
|
|
||||||
|
[source,javascript]
|
||||||
|
----
|
||||||
|
keycloak.loadUserProfile().success(function(profile) {
|
||||||
|
alert(JSON.stringify(test, null, " "));
|
||||||
|
}).error(function() {
|
||||||
|
alert('Failed to load user profile');
|
||||||
|
});
|
||||||
|
----
|
||||||
|
|
||||||
====== isTokenExpired(minValidity)
|
====== isTokenExpired(minValidity)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue