506
Views
4
Comments
How to expose Rest API and authenticate use token?

I want to expose a rest api  authenticate use token, how can i do it? 

I have looked some components in forge like  JSON Web Tokens (JWT) , but it just some server action that genarate token or read token,  there's not how to implement token based authentication for REST apis , where and how to save the token after token genarated, also correspondly how to consume it.

Is there some sample to understand it.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP
UserImage.jpg
dan liu

thank you for reply.

Sorry I cant't access and open this link, if possibly, take the capture of this article , it will be very helpful, thank you ! 

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP
2024-09-12 02-43-38
Deepsagar Dubey

Hi @liu dan 

There is two types of authentication in expose API from Outsystems.

1. Basic - It'll take username and password and try to login by Outsystems users entity. 

2. Custom - You are free to implement your own logic's here.

Here is some documentation which can help you.

Revoking an authentication token

Add Custom Authentication to an Exposed REST API

I hope it'll help you.

Thanks
Deep

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.