Giter Site home page Giter Site logo

generalbots / azureadpasswordreset.gbapp Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 3.0 8.41 MB

Custom General Bot App (.gbapp) for resetting an user password in Azure Active Directory, Office 365, Dynamics 365 or any app published through Azure AD. Navigate to the BotServer repository for more information:

Home Page: https://github.com/pragmatismo-io/BotServer

TypeScript 100.00%
active-directory bot virtual-assistant botbuilder bot-framework-v4 whatsapp skype facebook-messenger reset-password general-bots

azureadpasswordreset.gbapp's Introduction

azureadpasswordreset.gbapp's People

Contributors

rodrigorodriguez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

azureadpasswordreset.gbapp's Issues

Error after sending code.

20230824T212226 GB info Input> 1832 (type: message, name: undefined, channelId: omnichannel)
20230824T212227 GB info Reset: Calling AD to reset credentials...
20230824T212228 GB error ERROR: error argument must be an Error or a string Error: error argument must be an Error or a string
at new DialogContextError (/home/gbadmin/DATA/BotServer/node_modules/botbuilder-dialogs/lib/dialogContextError.js:24:19)
at /home/gbadmin/DATA/BotServer/node_modules/botbuilder-dialogs/lib/dialogContext.js:40:19
at Generator.throw ()
at rejected (/home/gbadmin/DATA/BotServer/node_modules/botbuilder-dialogs/lib/dialogContext.js:6:65)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
20230824T212228 GB error UNCAUGHT_EXCEPTION: TypeError: Cannot read properties of undefined (reading 'toString')
TypeError: Cannot read properties of undefined (reading 'toString')
at process. (file:///home/gbadmin/DATA/BotServer/dist/src/app.js:99:63)
at process.emit (node:events:512:28)
at emit (node:internal/process/promises:150:20)
at processPromiseRejections (node:internal/process/promises:284:27)
at process.processTicksAndRejections (node:internal/process/task_queues:96:32)

Implement refresh_token logic instead of relying only on access_token

Use an OAuth 2.0 refresh token to acquire additional access tokens after the current access token expires. Refresh tokens are long-lived, and can be used to retain access to resources for extended periods of time.

  1. https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-protocols-oauth-code
  2. https://docs.microsoft.com/en-us/azure/active-directory/active-directory-configurable-token-lifetimes#configurable-token-lifetime-properties

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.