Skip to content

Commit 8b2cf79

Browse files
authored
Merge pull request #178 from devforth/keycloack-oauth-adapter
feat: add name property to Keycloak adapter and update documentation
2 parents 3594570 + fcf4118 commit 8b2cf79

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

adminforth/documentation/docs/tutorial/05-Plugins/11-oauth.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ plugins: [
243243
adapters: [
244244
...
245245
new AdminForthAdapterKeycloakOauth2({
246+
name: "Keycloak",
246247
clientID: process.env.KEYCLOAK_CLIENT_ID,
247248
clientSecret: process.env.KEYCLOAK_CLIENT_SECRET,
248249
keycloakUrl: process.env.KEYCLOAK_URL,

adminforth/types/Adapters.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ export interface OAuth2Adapter {
3333
getTokenFromCode(code: string, redirect_uri: string): Promise<{ email: string }>;
3434
getIcon(): string;
3535
getButtonText?(): string;
36+
getName?(): string;
3637
}

dev-demo/resources/users.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ export default {
134134
useOpenID: true,
135135
}),
136136
new AdminForthAdapterKeycloakOauth2({
137+
name: "Keycloak",
137138
clientID: process.env.KEYCLOAK_CLIENT_ID,
138139
clientSecret: process.env.KEYCLOAK_CLIENT_SECRET,
139140
keycloakUrl: process.env.KEYCLOAK_URL,

0 commit comments

Comments
 (0)