Skip to content

Commit 21e382b

Browse files
author
Gauvain Pocentek
committed
[docs] Add an example for external identities settings
Fixes #528
1 parent 1a04634 commit 21e382b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/gl_objects/users.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ Set the avatar image for a user::
6868
user.avatar = open('path/to/file.png', 'rb')
6969
user.save()
7070

71+
Set an external identity for a user::
72+
73+
user.provider = 'oauth2_generic'
74+
user..extern_uid = '3'
75+
user.save()
76+
7177
User custom attributes
7278
======================
7379

0 commit comments

Comments
 (0)