Hi

I want to add auth to the rest API,

for that, I want to use OAuth?

can anyone help me how can I achieve this in OS


thank you,

omkar

Hi Omkar,

Here’s a very good Forge component with a demo application to get you started. It uses OAuth2 protocol.

Regards,

Nordin

Solution

Hi,

please check this article that will help you: Securing Your OutSystems APIs With OAuth 2.0

There are several components on Forge related with that, and that already implement it.

Nevertheless, if you want to learn how to implement it, we have just release an exercise focusing on how to integrate with an OAuth 2.0 provider.
In this exercise we use Google OAuth, but you could adapt it to another provider.

Check the content here: https://www.outsystems.com/learn/lesson/1839/integrating-with-oauth-exercise/

If you have any feedback let us know!


Cheers,

Nuno Verdasca




Solution

yes I got the solution, thank you all 

Miguel Verdasca wrote:

Hi,

please check this article that will help you: Securing Your OutSystems APIs With OAuth 2.0

There are several components on Forge related with that, and that already implement it.

Nevertheless, if you want to learn how to implement it, we have just release an exercise focusing on how to integrate with an OAuth 2.0 provider.
In this exercise we use Google OAuth, but you could adapt it to another provider.

Check the content here: https://www.outsystems.com/learn/lesson/1839/integrating-with-oauth-exercise/

If you have any feedback let us know!


Cheers,

Nuno Verdasca




Hi,

Í´ve tried to follow the instructions on this excercise, but I´ve an error following the intructions on page 21 item "e", it returns a Syntax error on the URL expression.
I just made a copy/paste from the excercise, as it seems to be the right thing to do...
Where´s my mistake?
Thanks...

Walter Franco


Hi Walter,

I have answered you in this post you created regarding your issue.

Regards,

Nordin