94 results found based on the keyword access token.
Topic
SMTPClient Object - read confirmation
Hi I'm trying SMtpClient in Powerbuilder 2022 R2. There are many new features to use like encodig,logfile,setproxy and xoauth2AccessToken. it's working amazing!! But just to try to maintain the above functionality, is there a way to get opened ema...
- damian jimenez
- 1 month ago
- PowerBuilder
Topic
Calling a .NET dll with publicClientApp.AcquireTokenByIntegratedWindowsAuth in it
Hello everyone, I have created a simple .net dll in SnapDevelop and used 'Tools - > .Net dll importer to import it into a non visual object in PowerBuilder. The c# code is below. The code to call this in PowerBuilder is: nvo_useraccesstokenut...
- David Pylatuk
- 1 month ago
- PowerBuilder
Topic
Unauthorization error on trying to login app hosted on PowerServer
Hi we ran into some serious issue on Friday evening, all our apps suddenly stopped working due to below error.and we are using JWT authentication with our own JWT Servers and verified we are getting a valid access token also. erroring out at app...
- Kirankumar Chavadi
- 1 month ago
- PowerServer
Topic
Unauthorization error on trying to login app hosted on PowerServer
Hi we ran into some serious issue on Friday evening, all our apps suddenly stopped working due to below error.we are using JWT authentication with our own JWT Servers and verified we are getting a valid access token also....
- Kirankumar Chavadi
- 1 month ago
- PowerServer
Topic
httpclient sendrequest fails on VM with return code of -4
Odd issue that's been plaguing me for awhile now. I'm trying to authenticate against ping access (grab a token) so that I can call a rest api with that token. Here's the powerbuilder code: Constant Integer SECURE_PROTOCOL_TLS = 5 //Set TLS to 1...
- Daniel Mullings
- 1 month ago
- PowerBuilder
Replies
RE: Azure Key Vault secret
Hi David, I'm implementing azure key vault for our PB server side apis, as well as some C# rest apis. I'm using managed identities to access key vault as the servers being used are all azure computes so it won't be certificate based. However, i be...
- mike S
- 1 month ago
- PowerBuilder
Topic
Is there any specific issue with "OAuthClient" and "TokenRequest" object and the grant_type as "Autherization_code" for access token request? Is there any security concern or disadvantage of using "HttpClient" object for requesting the access token instead of "OAuthClient" and "TokenRequest" object?
We are trying to implement the OAuth flow in PowerBuilder windows application using Azure AD. When the access token is requested using the "OAuthClient" and "TokenRequest" object with the grant_type as "Autherization_code" then we are always getting...
- Namdev Gopalghare
- 2 months ago
- PowerBuilder
Replies
RE: SMTPClient.Send keeps returning an error
probably you need the oauth2 authenticationlooking at the powerbuilder help there is an example using a gmail account which refers to the "XOAuth2AccessToken property":have to try this myself aswell but HTH Integer li_rc SMTPClient lnv_SmtpClien...
- Simone Olianti
- 3 months ago
- PowerBuilder
Replies
RE: JWT Authentication
Hi Vijay, maybe the code example in this page is of some help? https://docs.appeon.com/ps2022r2/Add_scripts_for_JWT.html Regards Tracy Huang...
- Tracy Huang @Appeon
- 4 months ago
- PowerServer
Replies
RE: PowerServer http status code 404 https port 443
Hi Pascal, Is it possible that this issue was caused by the path of the URL? Refer to: web.config - - PowerServer 2022 R2 Help (appeon.com) Note If you create and map a new site (or sub-app) to the site where web.config and Web APIs are deployed,...
- Logan Liu @Appeon
- 4 months ago
- PowerServer
Replies
RE: JWT - how PS uses it
Hi Mike, You can edit any authentication code in the PowerServer C# solution (a pure ASP.NET Core Web API). But I think it's better to get the Web API URL or database name using another REST API after authentication. I can try to answer a few quest...
- Logan Liu @Appeon
- 4 months ago
- PowerServer
Topic
HTTPClient VS RestClient for getting JWT
I use the restclient to get the JWT token from powerserver web api since that is how the examples show how to do it. From what i can tell however, all the GetJWTToken does is post to the url and put the response body in the 'ref string token' and...
- mike S
- 4 months ago
- PowerServer
Topic
Power 2019 R3: webservice Token using certificate
Hi all. I need to request for a token from a webservice, but it's using a certificate (file in a folder and password for validation). I know it's already implemented in PowerBuilder 2022 as I've been able to test, but in production environment I...
- ANTONIO MACIAS NOGALES
- 5 months ago
- PowerBuilder
Replies
RE: Calling a rest service with a cookie
I was able to get this to work. Thank you Daryl for the request header tip. All of this stuff is new to me. I'm posting the PowerBuilder code I'm using to grab the ping access cookie, and the call to the API. Genericized, but you get the idea. Just...
- Daniel Mullings
- 5 months ago
- PowerBuilder
Replies
RE: CreateProcess API Function
Hi Roland, Through this StackOverflow post I found that you can use the function CreateProcessWithTokenW to create a process passing it a specific process access token. Additionally, I found this other function GetCurrentProcessToken that retrieves ...
- Francisco Martinez @Appeon
- 6 months ago
- PowerBuilder
Topic
Using web API
Hi, I am trying to use an API created in C# in my PB application. I am using PB Version 2017 R3 Build 1878. To use the API, I need an access token that I am able to obtain using OAuthClient, TokenRequest and TokenResponse. But I am not able to acc...
- Yasir Masood
- 6 months ago
- PowerBuilder
Replies
RE: oauth 2
I solved this using the post by Problems retrieving an Oauth Token from the server from april 2022 this was the code ! worked first time ! OAuthClient loac_ClientTokenRequest ltr_RequestTokenResponse ltr_ResponseOAuthRequest loar_RequestResourceRes...
- Andrew Davis
- 7 months ago
- PowerBuilder
Replies
RE: AKV connection from PB 2019
I have a client id and client secret and the AKV url. My id is also part of an ACL group to access the AKV url. How can I use these to connect and retrieve values from the AKV....
- Nilanjan Chatterjee
- 8 months ago
- PowerBuilder
Topic
HTTPClient.SendRequest returns +3
Hi there! In PowerBuilder 2019 R3 I am using a "normal" HttpClient object to access a service fulkly accessible by PostMan, but from PowerBuilder I get an undocumented return code of 3. Not -3, but +3 instead. The main problem is to understand what...
- Piero Salandin
- 8 months ago
- PowerBuilder
Replies
RE: Azure Managed identity (ClientSecretCredential)
are you already using Azure AD? If not, (or as an alternative), it is fairly typical for blob storage processing to create a SAS access token and use that. ...
- mike S
- 10 months ago
- PowerBuilder