Questions tagged [keycloak-javascript]
15 questions
18
votes
3 answers
keycloak-js initialization failed because an ancestor violates the Content Security Policy directive: "frame-ancestors 'self'
I have a NGINX (1.14.1) which forwards /auth request to Keycloak (14.0.0) running in a cloud.
Here is the NGINX configuration in /etc/nginx/conf.d/my.domain.biz.conf
server {
listen 80;
server_name my.domain.biz;
return 301…

user3357926
- 435
- 1
- 4
- 13
5
votes
1 answer
Keycloak: Pass custom user attributes on Social Identity Provider Login
On registration, Keycloak provides the ability to add custom user attributes via the Keycloak theme's registration page template via "input" elements that look something like:

jchi2241
- 2,032
- 1
- 25
- 49
5
votes
2 answers
Keycloak - Client Roles - Retrieve custom attributes
I have created a client role as special_agent and have added two attributes as approve_leave and raise_leave.
I'm using the Javascript adapter and am able to login successfully on my website. I'm also able to receive the client role that I have…

Sahil Khanna
- 4,262
- 8
- 47
- 72
2
votes
0 answers
Keycloak.js CORS issue, only when loading account info
I'm using this very straight-forward script to connect to KeyCloak and fetch the users profile after successful login. It is basically copied together from documentation: