Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Connector Development
Unanswered

Custom REST API with oAuth2

(1) ShareShare
ReportReport
Posted on by 18

Hi there

It's my first time, I am trying to set up a custom REST API.

 

My plan: I want to get some Events-Data from a Swiss Post REST API in my Power Apps Application, based on some Dataverse Tables.

 

Therefore I set up a custom connector with a Postman-File. Somehow, I have problmes with the authentication process. When I do the test, I can't login. I can't figure out, what the problem ist. Here are some information:

 

The setup of the Connector:

Gotorus_0-1666698103142.png

 

The security setup (Client id & Client secret I got from Swiss Post):

Gotorus_1-1666698160780.png

 

The actions setup. I will use the "GetEvents" method in my app:

Gotorus_2-1666698211598.png

 

Finally the test:

Gotorus_3-1666698369642.png

 

And the result of the test:

Gotorus_4-1666698391173.png

 

Something I did wrong with the security part. When I go back after testing to the security tab, the Client id, Client secret and the Refresh URL are gone:

Gotorus_5-1666698448273.png

 

Can someone give me a hint, what the problem could be?

 

Here are also the infos from Swiss Post about the REST API

Digital Commerce API (post.ch)

 

Categories:
  • Gotorus Profile Picture
    18 on at
    Re: Custom REST API with oAuth2

    A little add-on to my question.

     

    For the authentication process, Swiss Post wants on top of the OAuth2.0 genereal authentication also an Open-ID. In the documentation of Swiss Post they say:

    The access to the Swiss Post connector and the e-commerce API is controlled by both OpenID-Connect protocol version 1.0 and OAuth authorization protocol version 2.0.

     

    Is this possible with the custom connector options?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 770 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 494

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 399

Featured topics