-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how can i get all these information from azure active directory ?AAD generate app id only #17
Comments
If you are using AAD endpoint v2, you can register an application in the new application registration portal under https://apps.dev.microsoft.com. This is where you set/get the values for For For For I'm using the passport-azure-ad node module, which has more information about how to use it for different AAD scenarios. |
I really appreciate your response but thisl ink https://apps.dev.microsoft.com has no linkage with azure active directory . this is just to register your app with microsoft . it does not show any options to integrate with active directory . secondly i am little confused login and logout url in simple app we give our page link . in bot case i am little bit confused |
Hi, Having some initial setup issues. So in apps.dev.microsoft.com, we register the bot application if in the "Converged Applications" and that's where we get the MICROSOFT_APP_ID/PASSWORD FROM. I am clear on that. If you can please clarify these, that would be awesome!
AZUREAD_APP_REALM Thanks! |
@sujaydutta
|
Thanks @ritazh, that helped. Once think I had to do is to login to https://apps.dev.microsoft.com and for the bot application, add a web platform and the redirect URL of the bot, i.e. https://mytestbot.azurewebsites.net Otherwise the redirect wasn't working correctly. BTW do you have any experience getting the access token for O365 Sharepoint site, on a related topic, I am getting some error most likely with the resource parameter used in the access token. If you can guide me to a good link that will be helpful. |
I have another issue now, during authentication I get this error. AADSTS70001: Application '83xxxxxxx' is not supported for this API version. |
@sujaydutta same here.. :( |
What's the error you are seeing? I assume you created the app here: https://apps.dev.microsoft.com ? |
My bot is hosted on https://gdcchatbot-trillan-dev.azurewebsites.net/ Have tried the following permutations of creating the app: Error Type 2: App created on https://apps.dev.microsoft.com, Redirect URL: https://gdcchatbot-trillan-dev.azurewebsites.net/api/OAuthCallback, AUTHBOT_STRATEGY: oidStrategyv2 or oidStrategyv1 Error Type 3: App created on https://portal.azure.com, Reply URL: https://gdcchatbot-trillan-dev.azurewebsites.net/, AUTHBOT_STRATEGY: oidStrategyv1 Error Type 4: App created on https://portal.azure.com, redirect URL: https://gdcchatbot-trillan-dev.azurewebsites.net/api/OAuthCallback, AUTHBOT_STRATEGY: oidStrategyv2 |
One obvious thing is you should configure your redirect url to match whatever is in the code:
https://github.com/CatalystCode/node-authbot/blob/master/app.js#L78
https://github.com/CatalystCode/node-authbot/blob/master/app.js#L106 Here is what I have for your reference:
From the https://apps.dev.microsoft.com portal:
|
Thank you @ritazh ..That clarified some of my doubts.. I've followed all the other points but am stuck on the last point you mentioned. I couldn't find "identifierUris" or "replyUrls" in the https://apps.dev.microsoft.com portal .. I could only find 'Redirect URLs' and 'LogoutURL' (when I add a web platform) I'm sure I'm missing something or doing something wrong...Could you please guide me as to where I can/should add/edit the "identifierUris" and "replyUrls" on the https://apps.dev.microsoft.com portal |
|
Hi @ritazh ..I resolved the issue. Sorry couldn't revert earlier but i've managed to sort the issue out now. Somehow I missed this part in the bot setup instructions:
Did that. Double checked the web.config file and everything is working now. Thanks for the help! Also, for users who are deploying the bot on a website, if they want the user to receive the authentication code in html format (since some browsers don't support JSON..like IE) to improve user experience: Replace
Thought it might help. Will add a pull request as well. Thanks again.. |
Hello @ritazh, I'm having some issues for making this works. Some help would be appreciated. Steps that I have followed:
MICROSOFT_APP_ID = MICROSOFT_APP_ID Error : There was an error sending this message to your bot: HTTP status code MethodNotAllowed Maybe I have missed something. Can you please guide me? @kanishk-mehta Hello Kanishk, Can you please help me. I saw you have a bot up and running with the authentication. Thanks |
Hi @ritazh,, Any update on this please? Thanks |
@EnnamGopaulen sorry about the delayed response. I can see that you have published your code to an Azure App service. Have you checked your web.config file? Details are mentioned in the last part of the readme file of the repository (just before acknowledgements): (have copied it below)
|
@kanishk-mehta thanks for your reply. Can you please guide me where to find the web.config. Thanks |
@EnnamGopaulen sure thing. Here's the link - https://github.com/CatalystCode/node-authbot/blob/master/web.config. Let me know if it works out. Thanks. |
@kanishk-mehta, thanks lots for your prompt answer. I missed that part. I have added it to my project. But still same :( Error: There was an error sending this message to your bot: HTTP status code MethodNotAllowed Thanks |
const AZUREAD_APP_PASSWORD = envx("AZUREAD_APP_PASSWORD");
const AZUREAD_APP_REALM = envx("AZUREAD_APP_REALM");
const AUTHBOT_CALLBACKHOST = envx("AUTHBOT_CALLBACKHOST");
const AUTHBOT_STRATEGY = envx("AUTHBOT_STRATEGY");
The text was updated successfully, but these errors were encountered: