본문으둜 κ±΄λ„ˆλ›°κΈ°

🌐 Keycloak

정보

이 λ¬Έμ„œλŠ” 아직 λ²ˆμ—­μ΄ λ˜μ–΄μžˆμ§€μ•ŠμŠ΅λ‹ˆλ‹€! 쑰금만 κΈ°λ‹€λ €μ£Όμ„Έμš”!

Documentation​

https://www.keycloak.org/docs/latest/server_admin/#_oidc_clients

Configuration​

팁

Create an openid-connect client in Keycloak with "confidential" as the "Access Type".

Options​

The Keycloak Provider comes with a set of default options:

You can override any of the options to suit your own use case.

Example​

import KeycloakProvider from "next-auth/providers/keycloak";
...
providers: [
KeycloakProvider({
clientId: process.env.KEYCLOAK_ID,
clientSecret: process.env.KEYCLOAK_SECRET,
issuer: process.env.KEYCLOAK_ISSUER,
})
]
...
λ…ΈνŠΈ

issuer should include the realm -Β e.g. https://my-keycloak-domain.com/realms/My_Realm