authorization

  • 21 Jul

    Microsoft identity platform and OAuth 2.0 authorization code flow

    Microsoft Sharepoint identity platform and OAuth 2.0 authorization code flow

    In version v2022.5.21.0 we added a new way to authenticate to SharePoint. It is in experimental phase and we would like to receive feedback from our users.

    Please select ‘OAuth 2.0 Authoziation Code Flow’ as Auth Type within your SharePoint setup.

    OAuth 2.0 authorization code flow

    In the OAuth2 setup you’ll need to add:

    • Authorization Endpoint URL:  https://login.microsoftonline.com/%realm/oauth2/v2.0/authorize
    • Token Endpoint URL:  https://login.microsoftonline.com/%realm/oauth2/v2.0/token
    • Client ID
    • Client Secret
    • Scope, provide the Scope(s) for your Sharepoint, depends on how you did the authentication setup for the Client ID:
      • offline_access web.manage
        • offline_access is a must otherwise we’ll not receive the Refresh Token
      • offline_access Sites.Manage.All
      • offline_access AllSites.Manage
      • offline_access ???
    •  Redirect URI:  https://localhost/
    • Redirect Port: 3017

    Click the <Get> button. This should fill the Realm field and after confirmation in your browser it should fill the Refresh and Access Token.

    Note: If you are not allowed to receive the Realm then you can enter this manually. In our case we’ll use the SharePoint Tenant ID as Realm parameter: link.

    OAuth 2.0 authorization code flow

    If you need any help with this ‘authorization code flow’, please let us know.

    Best Regards,

    Limagito Team