How to Add User Attribute| Keyclock V.24

  Рет қаралды 2,138

IOT Station

IOT Station

Күн бұрын

Пікірлер: 10
@celloucisse7548
@celloucisse7548 3 ай бұрын
Well explained. So, wich attribute refer to user agent ? I'm trying to customize the sessions responses returned by default. I'm using django, drf and python-keycloak
@iotstation7472
@iotstation7472 3 ай бұрын
Hi, Thank you for the comment.Basically Keycloak doesn't provide a specific user attribute for the 'User-Agent' by default. The User-Agent usually refers to the client software (like a browser or mobile app) making the request. You have a couple of options: You can create a custom attribute in Keycloak for the User-Agent. Alternatively, since you're using Django, you can access the User-Agent via the Django request object (request.META['HTTP_USER_AGENT']). You can then pass this information to Keycloak as a custom claim when authenticating or updating sessions."
@gmisir
@gmisir 2 ай бұрын
Very good presentation! Where could I find the data models for users, clients and other object?
@iotstation7472
@iotstation7472 2 ай бұрын
Hi. Thank you for the comment. Actually i didnt understand the question but i can guide you to the documentation of keycloak which is the best reference, in case you need more information please provide me more details. www.keycloak.org/docs-api/latest/javadocs/index.html www.keycloak.org/docs/latest/server_admin/index.html
@gunasekaran7425
@gunasekaran7425 7 ай бұрын
Hi sir I'm using vue 3 project, I'm hit the keycloak rest api, cors error occurred, but hit from python project, cors error not occurred, how to solve cors error during call rest api
@iotstation7472
@iotstation7472 7 ай бұрын
Thank you for the comment. Here’s my recommendation:Go to the Keycloak admin console. Under the relevant client settings, set Web Origins to * or specify your frontend URL (e.g., localhost:8080).You can also define a proxy in your vue.config.js and provide the Keycloak address.This configuration allows your frontend to make cross-origin requests to the Keycloak API, resolving the CORS error. Let me know if you need more help. Good luck!
@timapigolev1640
@timapigolev1640 5 ай бұрын
i don't see my new attribute in userinfo endpoint. :(
@edgareduardovegaruiz2126
@edgareduardovegaruiz2126 4 ай бұрын
do you solve that? how? i'm same
@timapigolev1640
@timapigolev1640 4 ай бұрын
@@edgareduardovegaruiz2126 yes i'm. U need add New scope to client, and then add mapper to this scope. Choose type mapper "user attribute" and enter name of New attribute.
@faride.h
@faride.h 6 ай бұрын
👌👌👌
#KEYCLOAK Declarative User Profile | Niko Köbler (@dasniko)
27:48
Niko Köbler - Expert for Keycloak IAM & SSO
Рет қаралды 792
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
Zerto 10 Keycloak AD Federation
19:30
Gene Torres
Рет қаралды 4,1 М.
Securing Spring Boot REST API Using Keycloak
15:56
hexaDefence
Рет қаралды 1,1 М.
Part 4.1 - Keycloak introduces user profile from version 24
11:38
Dive Into Development
Рет қаралды 3,5 М.
KEYCLOAK - 2FA with SMS based OTP text messages | Niko Köbler (@dasniko)
19:25
Niko Köbler - Expert for Keycloak IAM & SSO
Рет қаралды 30 М.
Twenty: Free Open Source CRM
14:16
Elestio
Рет қаралды 53 М.
How is this Website so fast!?
13:39
Wes Bos
Рет қаралды 1,3 МЛН