Add Code or publish instruction for authenticating to Microsoft Azure #2928
Replies: 4 comments
-
Wrote 2 custom routes to get this to work but if it could be added to the Microsoft OAuth code in feathers it would be a lot nicer. app.get('/auth', (req, res) => { app.get('/auth-callback', async (req, res) => {
// for testing purposes;
}); |
Beta Was this translation helpful? Give feedback.
-
I'm also in the process of trying to get Azure AD Auth (now Entra) to work.
And the error I'm getting is a validation error because it seems that somewhere in "#/additionalproperties" entraId is added and that messes up the validation. I'll try to get in touch with the devs about that one and update my comment here when I have a working solution. |
Beta Was this translation helpful? Give feedback.
-
Have you guys tried looking at the OauthStrategy? feathers/packages/authentication-oauth/src/strategy.ts Lines 1 to 176 in 82d30fd |
Beta Was this translation helpful? Give feedback.
-
I have found a way to use Azure Entra Id Auth with v5.0.11 and minimal changes, but took quite some debugging and research for that.
I'm not 100% sure if response is needed or if callback is totally correct. Also the name "microsoft" might add certain attributes since there is a config for microsoft somewhere in the feathers code. I did not try another name for now. There is also the need to add "microsoftId" in the auth schema (default user, in my case it's called auth) in the authentication service:
otherwise validation will fail.
Mind you, that the the authentication that you want on your services is still |
Beta Was this translation helpful? Give feedback.
-
Add code or write a procedure to show OAuth authentication working for a Microsoft Azure account.
I tried to change the default.json file to use an app I registered in a free Microsoft developer account without success. I believe it would be possible to use the following articles:
https://learn.microsoft.com/en-us/azure/databricks/dev-tools/api/latest/aad/app-aad-token
https://learn.microsoft.com/en-us/azure/active-directory/develop/tutorial-v2-javascript-auth-code
https://stackoverflow.com/questions/54868974/getting-security-groups-in-jwt-access-token
Beta Was this translation helpful? Give feedback.
All reactions