@@ -20,14 +20,14 @@ Install the plugin and at least one OAuth adapter:
2020
2121``` bash
2222pnpm install @adminforth/oauth --save
23- pnpm install @adminforth/google- oauth-adapter --save
23+ pnpm install @adminforth/oauth-adapter-google --save
2424```
2525
2626If you want Agent chat surfaces, install the OAuth adapter for the same provider as the chat surface. For example, Telegram chat surface support requires both:
2727
2828``` bash
2929pnpm install @adminforth/chat-surface-adapter-telegram --save
30- pnpm install @adminforth/telegram- oauth-adapter --save
30+ pnpm install @adminforth/oauth-adapter-telegram --save
3131```
3232
3333## External Identities Resource
@@ -100,7 +100,7 @@ This example configures Google OAuth. See [OAuth2 Providers](#oauth2-providers)
100100
101101``` typescript title="./resources/adminuser.ts"
102102import OAuthPlugin from ' @adminforth/oauth' ;
103- import AdminForthAdapterGoogleOauth2 from ' @adminforth/google- oauth-adapter' ;
103+ import AdminForthAdapterGoogleOauth2 from ' @adminforth/oauth-adapter-google ' ;
104104
105105plugins : [
106106 new OAuthPlugin ({
@@ -216,7 +216,7 @@ new OAuthPlugin({
216216Install Adapter:
217217
218218```
219- pnpm install @adminforth/facebook- oauth-adapter --save
219+ pnpm install @adminforth/oauth-adapter-facebook --save
220220```
221221
222222
@@ -236,7 +236,7 @@ FACEBOOK_CLIENT_SECRET=your_facebook_client_secret
236236Add the adapter to your plugin configuration:
237237
238238``` typescript title="./resources/adminuser.ts"
239- import AdminForthAdapterFacebookOauth2 from ' @adminforth/facebook- oauth-adapter' ;
239+ import AdminForthAdapterFacebookOauth2 from ' @adminforth/oauth-adapter-facebook ' ;
240240
241241// ... existing resource configuration ...
242242plugins : [
@@ -257,7 +257,7 @@ plugins: [
257257Install Adapter:
258258
259259```
260- pnpm install @adminforth/github- oauth-adapter --save
260+ pnpm install @adminforth/oauth-adapter-github --save
261261```
262262
263263
@@ -275,7 +275,7 @@ GITHUB_CLIENT_SECRET=your_github_client_secret
275275Add the adapter to your plugin configuration:
276276
277277``` typescript title="./resources/adminuser.ts"
278- import AdminForthAdapterGithubOauth2 from ' @adminforth/github- oauth-adapter' ;
278+ import AdminForthAdapterGithubOauth2 from ' @adminforth/oauth-adapter-github ' ;
279279
280280// ... existing resource configuration ...
281281plugins : [
@@ -296,7 +296,7 @@ plugins: [
296296Install Adapter:
297297
298298```
299- pnpm install @adminforth/telegram- oauth-adapter --save
299+ pnpm install @adminforth/oauth-adapter-telegram --save
300300```
301301
302302Add the credentials to your ` .env ` file:
@@ -310,7 +310,7 @@ Add the adapter to your plugin configuration:
310310
311311``` ts
312312import OAuthPlugin from ' @adminforth/oauth' ;
313- import TelegramOauthAdapter from ' @adminforth/telegram- oauth-adapter' ;
313+ import TelegramOauthAdapter from ' @adminforth/oauth-adapter-telegram ' ;
314314
315315new OAuthPlugin ({
316316 emailField: ' email' ,
@@ -341,7 +341,7 @@ If you use `@adminforth/chat-surface-adapter-telegram`, users must connect Teleg
341341Install Adapter:
342342
343343```
344- pnpm install @adminforth/keycloak- oauth-adapter --save
344+ pnpm install @adminforth/oauth-adapter-keycloak --save
345345```
346346
347347If you need a basic Keycloak setup which tested with AdminForth, you can follow [ this minimal KeyClock setup example] ( /blog/keycloak-setup-example ) .
@@ -358,7 +358,7 @@ KEYCLOAK_REALM=your_keycloak_realm
3583582 . Add the adapter to your plugin configuration:
359359
360360``` typescript title="./resources/adminuser.ts"
361- import AdminForthAdapterKeycloakOauth2 from ' @adminforth/keycloak- oauth-adapter' ;
361+ import AdminForthAdapterKeycloakOauth2 from ' @adminforth/oauth-adapter-keycloak ' ;
362362
363363// ... existing resource configuration ...
364364plugins : [
@@ -383,7 +383,7 @@ plugins: [
383383Install Adapter:
384384
385385```
386- pnpm install @adminforth/microsoft- oauth-adapter --save
386+ pnpm install @adminforth/oauth-adapter-microsoft --save
387387```
388388
389389
@@ -404,7 +404,7 @@ MICROSOFT_CLIENT_SECRET=your_microsoft_client_secret
404404Add the adapter to your plugin configuration:
405405
406406``` typescript title="./resources/adminuser.ts"
407- import AdminForthAdapterMicrosoftOauth2 from ' @adminforth/microsoft- oauth-adapter' ;
407+ import AdminForthAdapterMicrosoftOauth2 from ' @adminforth/oauth-adapter-microsoft ' ;
408408
409409// ... existing resource configuration ...
410410plugins : [
@@ -426,7 +426,7 @@ plugins: [
426426Install Adapter:
427427
428428```
429- pnpm install @adminforth/twitch- oauth-adapter --save
429+ pnpm install @adminforth/oauth-adapter-twitch --save
430430```
431431
4324321 . Go to the [ Twitch dashboard] ( https://dev.twitch.tv/console/ )
@@ -443,7 +443,7 @@ TWITCH_CLIENT_SECRET=your_twitch_client_secret
443443Add the adapter to your plugin configuration:
444444
445445``` typescript title="./resources/adminuser.ts"
446- import AdminForthAdapterTwitchOauth2 from ' @adminforth/twitch- oauth-adapter' ;
446+ import AdminForthAdapterTwitchOauth2 from ' @adminforth/oauth-adapter-twitch ' ;
447447
448448// ... existing resource configuration ...
449449plugins : [
@@ -461,18 +461,18 @@ plugins: [
461461
462462### Need custom provider?
463463
464- Just fork any existing adapter e.g. [ Google] ( https://github.com/devforth/adminforth-google- oauth-adapter ) and adjust it to your needs.
464+ Just fork any existing adapter e.g. [ Google] ( https://github.com/devforth/adminforth-oauth-adapter-google ) and adjust it to your needs.
465465
466- This is really easy, you have to change less then 10 lines of code in this [ file] ( https://github.com/devforth/adminforth-google- oauth-adapter/blob/main/index.ts )
466+ This is really easy, you have to change less then 10 lines of code in this [ file] ( https://github.com/devforth/adminforth-oauth-adapter-google /blob/main/index.ts )
467467
468468Then just publish it to npm and install it in your project.
469469
470470
471471Links to adapters:
472- [ Google] ( https://github.com/devforth/adminforth-google- oauth-adapter )
473- [ GitHub] ( https://github.com/devforth/adminforth-github- oauth-adapter )
474- [ Facebook] ( https://github.com/devforth/adminforth-facebook- oauth-adapter )
475- [ Keycloak] ( https://github.com/devforth/adminforth-keycloak- oauth-adapter )
472+ [ Google] ( https://github.com/devforth/adminforth-oauth-adapter-google )
473+ [ GitHub] ( https://github.com/devforth/adminforth-oauth-adapter-github )
474+ [ Facebook] ( https://github.com/devforth/adminforth-oauth-adapter-facebook )
475+ [ Keycloak] ( https://github.com/devforth/adminforth-oauth-adapter-keycloak )
476476
477477
478478## Fill user full name
0 commit comments