Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Ustawienia klienta w systemie PlusWorkflow:

Scopeoffline_access https://outlook.office.com/IMAP.AccessAsUser.All https://outlook.office.com/SMTP.Send
Authorization Urlhttps://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/authorize
Token Urlhttps://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

Scopehttps://mail.google.com/
 
Authorization Urlhttps://accounts.google.com/o/oauth2/v2/auth?access_type=offline&prompt=consent
Token Urlhttps://oauth2.googleapis.com/token

Parametry access_type oraz prompt są potrzebne aby uzyskać refresh token.