Skip to content

Commit 79f0db4

Browse files
committed
docs: update docs for the oauth plugin
1 parent 49cb84d commit 79f0db4

File tree

1 file changed

+28
-1
lines changed
  • adminforth/documentation/docs/tutorial/07-Plugins

1 file changed

+28
-1
lines changed

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

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,4 +350,31 @@ Links to adapters:
350350
[Google](https://github.com/devforth/adminforth-google-oauth-adapter)
351351
[GitHub](https://github.com/devforth/adminforth-github-oauth-adapter)
352352
[Facebook](https://github.com/devforth/adminforth-facebook-oauth-adapter)
353-
[Keycloak](https://github.com/devforth/adminforth-keycloak-oauth-adapter)
353+
[Keycloak](https://github.com/devforth/adminforth-keycloak-oauth-adapter)
354+
355+
356+
## Fill user full name
357+
358+
If you have a fullName field in your users resource, you can add it to the plugin setup:
359+
360+
```ts
361+
362+
plugins: [
363+
...
364+
365+
new OAuthPlugin({
366+
367+
...
368+
369+
userFullNameField: 'fullName'
370+
371+
...
372+
373+
}),
374+
]
375+
376+
```
377+
378+
This field will be automatically filled with the name that the provider returns, if this field was empty.
379+
380+
> ☝️Not all providers return full name or even if they do, there is no guarantee that they will be correct

0 commit comments

Comments
 (0)