...
Ustawienia klienta w systemie PlusWorkflow:
Scope | offline_access https://outlook.office.com/IMAP.AccessAsUser.All https://outlook.office.com/SMTP.Send |
Authorization Url | https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/authorize |
Token Url | https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token |
<tenant-id> należy zastąpić Identyfikatorem dzierżawy, który można znaleźć w ten sposób: https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/active-directory-how-to-find-tenant
Jeśli do Authorization Url dopiszemy parametr prompt=select_account , będziemy mogli wybrać na które konto chcemy się zalogować.
Gmail:
Ustawienia klienta w systemie PlusWorkflow:
Poradnik tworzenia klienta: https://developers.google.com/identity/protocols/oauth2/web-server#creatingcred
Scope | https://mail.google.com/ |
Authorization Url | https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&prompt=consent |
Token Url | https://oauth2.googleapis.com/token |
Parametry access_type oraz prompt są potrzebne aby uzyskać refresh token.