mirror of
https://github.com/grafana/grafana.git
synced 2026-07-29 15:59:50 -05:00
Auth: implement auto_sign_up for auth.jwt (#43502)
Co-authored-by: James Brown <jbrown@easypost.com>
This commit is contained in:
co-authored by
James Brown
parent
45287b4129
commit
25736b6afb
@@ -44,8 +44,13 @@ username_claim = sub
|
||||
|
||||
# Specify a claim to use as an email to sign in.
|
||||
email_claim = sub
|
||||
|
||||
# auto-create users if they are not already matched
|
||||
# auto_sign_up = true
|
||||
```
|
||||
|
||||
If `auto_sign_up` is enabled, then the `sub` claim is used as the "external Auth ID". The `name` claim is used as the user's full name if it is present.
|
||||
|
||||
## Signature verification
|
||||
|
||||
JSON web token integrity needs to be verified so cryptographic signature is used for this purpose. So we expect that every token must be signed with some known cryptographic key.
|
||||
|
||||
Reference in New Issue
Block a user