glamorous-sunset-68314
04/14/2022, 5:50 PMvar OutlookOAuth2Config = &oauth2.Config{
ClientID: "f1774b58a70e2",
ClientSecret: "GJF7Q~Cc1RxOb",
RedirectURL: "<http://localhost:1337/outlook/emails/callback>",
Scopes: []string{
"offline_access",
"<https://outlook.office.com/User.Read>",
"<https://outlook.office.com/IMAP.AccessAsUser.All>",
},
Endpoint: oauth2.Endpoint{
AuthURL: "<https://login.microsoftonline.com/common/oauth2/v2.0/authorize>",
TokenURL: "<https://login.microsoftonline.com/common/oauth2/v2.0/token>",
},
}
var OutlookUserProfileOAuth2Config = &oauth2.Config{
ClientID: "f1caa4544b58a70e2",
ClientSecret: "GJF7Q~Cc1RxAq6~Ob",
RedirectURL: "<http://localhost:1337/outlook/profile/callback>",
Scopes: []string{
"User.Read",
"<https://graph.microsoft.com/User.Read>",
},
Endpoint: oauth2.Endpoint{
AuthURL: "<https://login.microsoftonline.com/common/oauth2/v2.0/authorize>",
TokenURL: "<https://login.microsoftonline.com/common/oauth2/v2.0/token>",
},
}
I want to migrate to Ory Kratos since I'm doing the two endpoints myself now.white-greece-76805
04/14/2022, 6:08 PMglamorous-sunset-68314
04/15/2022, 10:57 AM