cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Gotorus
New Member

Custom REST API with oAuth2

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)

 

1 REPLY 1
Gotorus
New Member

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?

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Kudoed Authors
Users online (3,739)