Forums

Find answers, ask questions, and connect with our
community all around the world.

Home Forum Omnis General Forum OAuth2Worker

  • OAuth2Worker

    Posted by Claire BENEVENT on July 9, 2024 at 1:54 pm

    Hi,

    I use a OAuth2 Worker to get an access token.

    An object component is in the library with $superclass defined as oAuth2Worker.

    But the $completed method of my class is never used. So I can’t catch when the $authorize() is finished.

    I have try to use an object or an object reference : both don’t work. I get the token but don’t enter in $authorize.

    Is there a work around ? or something missing ?

    thanks,

    Do $clib.$objects.oAuth2Worker.$newref() Returns voAuth2Access

    Do voAuth2Access.$granttype.$assign(kOW3OAUTH2grantClientCredentials)

    Do voAuth2Access.$clientid.$assign(csClientId)

    Do voAuth2Access.$clientsecret.$assign(csClientSecret)

    Do voAuth2Access.$scope.$assign(‘https://analysis.windows.net/powerbi/api/.default’)

    Do voAuth2Access.$tokenurl.$assign(con(‘https://login.microsoftonline.com/’,csTenantId,’/oauth2/v2.0/token’))

    Do voAuth2Access.$protocollog.$assign(kOW3logHTML)

    Do voAuth2Access.$authorize() Returns vbOk

    Claire BENEVENT replied 6 days, 14 hours ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

Log in to reply.