惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
Last Week in AI
Last Week in AI
T
Tailwind CSS Blog
WordPress大学
WordPress大学
B
Blog RSS Feed
T
The Blog of Author Tim Ferriss
F
Fortinet All Blogs
aimingoo的专栏
aimingoo的专栏
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
C
Check Point Blog
P
Proofpoint News Feed
H
Help Net Security
月光博客
月光博客
博客园_首页
Stack Overflow Blog
Stack Overflow Blog
博客园 - 三生石上(FineUI控件)
Martin Fowler
Martin Fowler
Recent Announcements
Recent Announcements
人人都是产品经理
人人都是产品经理
U
Unit 42
美团技术团队
I
InfoQ
A
About on SuperTechFans

Gary' Blog

Migrate pip to uv - Gary' Blog Terminal autocomplete (only macOS and Linux) How to expand the hard disk capacity of Debian/Ubuntu in ESXi Authentication FastAPI with Keycloak - Gary' Blog Careers and LinkedIn Jobs Page of Fortune 500 American Companies How to connect Windows desktop remotely using RDP and cloudflare ZeroTrust tunnel ESXi 8 issue solved: This PC can’t run Windows 11 How to download and license ESXi 8? Get clicked word using pure Javascript
Keycloak configuration problems and solutions
Gary · 2025-02-04 · via Gary' Blog

400 Bad Request when login

Please check your realm name, it should not include SPACE.

How to get client secret

You need to turn on Client authentication and Authorization at client Settings.

Then you can see and copy the Client secret from the credentials tab.

How to get Access token signature algorithm

You will get following error if didn’t set up Access token signature algorithm or set a wrong value:

jose.exceptions.JWKError: ('Could not deserialize key data. The data may be in an incorrect format, the provided password may be incorrect, it may be encrypted with an unsupported algorithm, or it may be an unsupported key type (e.g. EC curves with explicit parameters).', [<OpenSSLError(code=503841036, lib=60, reason=524556, reason_text=unsupported)>])

Go to Client -> Advanced -> Access token signature algorithm, select the one you setup at your code.

JWTClaimsError(‘Invalid audience’)

Wee need to add a token mapper (with type Audience) to the dedicated scope of the client.

Clients > Your client > Client scopes > your-client-dedicated Add mapper > by configuration > Audience.

Add a name of the mapper, select your client on the select box and enable Add to access token. Your client should now be in the "aud" field of the access token.

References