PHP sdk for AAD OAuth 2.0 and ASB RBAC

Amshumanth Sirga 6 Reputation points
2021-01-07T05:30:17.9+00:00

Hi Experts,

We are trying to implement RBAC for Service Bus, for which pub/sub applications, which are out of Azure, need to do OAuth 2.0 handshake with AAD. Also those need to refactor current integration with Service Bus to include auth token. One of these applications is PHP based for which we are unable to find supporting SDK documentation with code samples. Can you please direct us to it? MSAL or ADAL, which one is a better choice?

Rgds

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,155 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. VipulSparsh-MSFT 16,271 Reputation points Microsoft Employee
    2021-01-07T07:22:18.033+00:00

    @Amshumanth Sirga You can get some ideas from https://azure.microsoft.com/en-us/develop/php/ or can also reach out at azurephpsdk@microsoft.com to see if they have any custom samples.

    Coming to MSAL or ADAL :

    Many developers have built and deployed applications using the Azure Active Directory Authentication Library (ADAL). We now recommend using the Microsoft Authentication Library (MSAL) for authentication and authorization of Azure AD entities.

    By using MSAL instead of ADAL:

    • You can authenticate a broader set of identities:
    • Azure AD identities
    • Microsoft accounts
    • Social and local accounts by using Azure AD B2C
    • Your users will get the best single-sign-on experience.
    • Your application can enable incremental consent.
    • Supporting Conditional Access is easier.
    • You benefit from innovation. Because all Microsoft development efforts are now focused on MSAL, no new features will be implemented in ADAL.

    You can read more about it here

    -----------------------------------------------------------------------------------------------------------------

    If the suggested response helped you resolve your issue, please do not forget to accept the response as Answer and "Up-Vote" for the answer that helped you for benefit of the community.

    0 comments No comments

  2. Amshumanth Sirga 6 Reputation points
    2021-01-08T07:41:21.427+00:00

    Hi,
    Thanks for the reply. We are unable to locate required SDK at https://azure.microsoft.com/en-us/develop/php/ . Two things are needed 1. PHP sdk for MSAL OAuth 2.0 based authentication with AAD 2. PHP sdk for token based RBAC with Service Bus

    Also we sent an email to azurephpsdk@microsoft.com its bouncing.

    Rgds

    0 comments No comments

  3. Amshumanth Sirga 6 Reputation points
    2021-01-11T05:52:32.557+00:00

    Hi,

    Any update on above, pls let us know. Its a bit urgent for us now.

    Rgds


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.