mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-11-11 14:28:02 +01:00
added OAuth2 displayName and pkce options
This commit is contained in:
1 parent
995733000f
commit
b283ee2263
65 files changed
+421
-226
No files matched your search
@@ -23,11 +23,13 @@ type Microsoft struct {
|
||||
func NewMicrosoftProvider() *Microsoft {
|
||||
endpoints := microsoft.AzureADEndpoint("")
|
||||
return &Microsoft{&baseProvider{
|
||||
ctx: context.Background(),
|
||||
scopes: []string{"User.Read"},
|
||||
authUrl: endpoints.AuthURL,
|
||||
tokenUrl: endpoints.TokenURL,
|
||||
userApiUrl: "https://graph.microsoft.com/v1.0/me",
|
||||
ctx: context.Background(),
|
||||
displayName: "Microsoft",
|
||||
pkce: true,
|
||||
scopes: []string{"User.Read"},
|
||||
authUrl: endpoints.AuthURL,
|
||||
tokenUrl: endpoints.TokenURL,
|
||||
userApiUrl: "https://graph.microsoft.com/v1.0/me",
|
||||
}}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user