Repository navigation
Expand file tree
/
Copy pathopenid.stone
More file actions
47 lines (37 loc) · 1.62 KB
/
Copy pathopenid.stone
File metadata and controls
47 lines (37 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
namespace openid
import common
route userinfo (UserInfoArgs, UserInfoResult, UserInfoError)
"This route is used for refreshing the info that is found in the id_token during the OIDC flow.
This route doesn't require any arguments and will use the scopes approved for the given access token."
attrs
allow_app_folder_app = true
auth = "user"
is_preview = true
scope = "openid"
union OpenIdError
incorrect_openid_scopes
"Missing openid claims for the associated access token."
union UserInfoError
openid_error OpenIdError = incorrect_openid_scopes
struct UserInfoArgs
"No Parameters"
struct UserInfoResult
family_name String?
"Last name of the user."
given_name String?
"First name of the user."
email String?
"The user's email address. Be aware it's possible that the user
has since lost access to their email. Note: email is not a unique or
stable identifier for a Dropbox account. Users can change their email,
and emails can be reused by different accounts. Apps should not use
email as a key for account identification; use :field:`sub` instead."
email_verified Boolean?
"If the user's email address is verified."
iss String = ""
"Issuer of the token (in this case Dropbox)."
sub String = ""
"An identifier for the user. This is the Dropbox account_id, a string
value such as dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc. The account_id
is a unique and stable identifier for a Dropbox account, suitable for
use as a key in authentication and account management."