keycloak

Is it possible to get Keycloak's REST api definitions in yaml or json?

非 Y 不嫁゛ 提交于 2020-01-30 08:13:05
问题 Is it possible somehow to get openapi (or swagger) definitions for Keycloak's REST endpoints in yaml or json format? Everything I could find was documentation. 回答1: There are some user-contributed definitions in this PR: https://github.com/keycloak/keycloak/pull/5198 (1, 2) but no official OpenAPI definition yet. Follow this issue for updates. 来源: https://stackoverflow.com/questions/56163439/is-it-possible-to-get-keycloaks-rest-api-definitions-in-yaml-or-json

Get Roles of logged-in User in Keycloak

萝らか妹 提交于 2020-01-26 01:48:07
问题 I secured my NODE.js App with keycloak and it works fine var Keycloak = require('keycloak-connect'); var session = require('express-session'); var keycloak = null; var memoryStore = new session.MemoryStore(); keycloak = new Keycloak({ store: memoryStore }); app.get('/portal', keycloak.protect(), function (req, res) { res.sendFile(path.join(__dirname, '/views/index.html')); }); in the portal (index.html) I have to show / hide different parts of the page according to the user's role in keycloak

How to integrate Ember.JS and Keycloak SSO system

爷,独闯天下 提交于 2020-01-25 13:03:43
问题 My question is quite simple : does anybody know how to integrate Ember.JS and Keycloak (the SSO system) ? We currently face a problem using the Keycloak JS Bower library (https://github.com/keycloak/keycloak-js-bower) to redirect users to Keycloak own login page, and to generally integrate Ember.JS with Keycloak. Our problems are : Double page reload on page reloading, 401 unauthorized HTTP code on login to the Ember App. Thanks for your (precious) support. 回答1: You can use script JS: Check

How to integrate Ember.JS and Keycloak SSO system

旧时模样 提交于 2020-01-25 13:03:28
问题 My question is quite simple : does anybody know how to integrate Ember.JS and Keycloak (the SSO system) ? We currently face a problem using the Keycloak JS Bower library (https://github.com/keycloak/keycloak-js-bower) to redirect users to Keycloak own login page, and to generally integrate Ember.JS with Keycloak. Our problems are : Double page reload on page reloading, 401 unauthorized HTTP code on login to the Ember App. Thanks for your (precious) support. 回答1: You can use script JS: Check

Deploy keycloak custom spi deployment

大城市里の小女人 提交于 2020-01-24 16:25:08
问题 I try to create a custom spi, in my keycloak project, following the basic keycloack structure, I add custom provider interface which extends provider, custom provider factory and implement custom spi for them as keycloak documentation says, and they do in their source code, after that i create a custom implementation for my provider and provider factory, i create the file in META-INF/services as documentation says, and I am using ear aproach to deploy like in beercloak example, but when I try

Correct the classpath of your application so that it contains a single, compatible version of oauth2.client.registration.ClientRegistrations

社会主义新天地 提交于 2020-01-24 13:09:10
问题 I'm trying to deploy my web app in Tomcat server locally and it's very simple Keycloak authentication app but i'm getting below error even after deleting all local repositories in this path ( .m2\repository\org\hibernate ) Then I done mvn clean install and tried to re-deploy again Error Message: An attempt was made to call a method that does not exist. The attempt was made from the following location: org.springframework.boot.autoconfigure.security.oauth2.client

Keycloak automatic login after email confirmation with disabled user

余生颓废 提交于 2020-01-23 03:34:26
问题 We're using keycloak (KC) with custom providers for the registration flow. At the end of the registration flow, before the confirmation email is sent to the user (as a default KC functionality), we disable the user as it fits our use case. When user clicks on the email confirmation, mail is confirmed and user is automatically logged in, despite the fact he/she is disabled at that point. Logins after that work as expected (if user is disabled, login is forbidden, else it succeeds). Upon

Keycloak - Custom SPI does not appear in list

北战南征 提交于 2020-01-23 03:32:13
问题 I made a custom SPI for my keycloak server and now I have to configure it on the Admin console. I added the SPI as a module, with manual installation, so I have it on modules/{package-name}/main, with the module.xml; I have also put the on standalone.xml, and the also in the keycloak-server subsystem. After all this configuration, I then go to the admin console to configure the custom user provider and it does not appear in the list. What can I do? 回答1: Found a way of doing this, it's to add

keycloak (spring boot) Not authenticating REST endpoint

风流意气都作罢 提交于 2020-01-17 06:03:08
问题 I am trying to play around with open source user management service like keycloak. Building a angularJs app that will be send HTTP request to REST endpoint secured by keycloak. I am using spring boot on the backend. I am able to call the endpoint and get result which should not be possible since it should block request coming from unauthorized source. These are the two links that I followed keycloak with angular and spring boot 2.Github link to keycloak example Controller which consists of

Accepting a JWT token from an external IdP through Keycloak

天大地大妈咪最大 提交于 2020-01-16 11:38:05
问题 I have a setup where Keycloak is acting as an identity broker. There are two Oauth2.0 Identity Providers configured in Keycloak. A user goes to my app, is forwarded to Keycloak and is presented with two buttons. These buttons can be used to either authenticate with IdP 1 or IdP 2. Once the user is authenticated, keycloak will receive the JWT token and will issue its own JWT token to the client, enriched with claims from the JWT token received from the selected IdP. So far so good. Now I have