How to secure an HTTP Service in IBM ACE using OAuth JWT ???
Dipanjan Das
Associate Architect @ Publicis Sapient | MuleSoft Mentor | IBM Certified ACE/IIB/WMB | IBM MQ | MCD-1 | IBM APIC | 3x Solace PubSub+ | 7x Azure | 2x GCP | 3x OCI | 5x Ali | Golang | Docker | ELK | Java | IIB/ACE Trainer
In my last post of Securing a Web Application using Basic Auth leveraging the IBM ACE Policies, I was asked about securing Application with OAuth. Although API Managers like IBM API Connect, 谷歌 APIGEE, Kong Inc. , Tyk etc. majorly handles the security of the APIs, it is worth learning!
?? How did this idea land:
Thoroughly explored MuleSoft Anypoint Platform with policies, especially the JWT Policy. Big thanks to Jitendra Bafna ???? Authored MuleSoft Platform Architect's Guide , your videos helped me understand majority of the concepts. Video Links: ??Enforcing MuleSoft JWT Validation Policy using API Manager API ?? OAuth2 : Authorize the MuleSoft API Using OKTA
The implementation relies on Java Nimbus-Jose-JWT. ?? Documentation ?? Repository
Helpful resource for JWT overview: ?? Document by Aram Tchekrekjian
? Policy Builder (WebGUI):
The JWT Policy is built using UserDefined Policy. Creating/editing UserDefined Policies are error prone. Hence created a small WebUI (design inspired from JWT Policy on MuleSoft Anypoint Platform, themed on IBM App Connect Enterprise Web UI)
?? Access the Policy Builder WebGUI here!!
?? Things I did:
领英推荐
? Success! The service now requires a valid signed JWT.
?? Code is available on my ?? GitHub Repo
? Priya Shaw , Aakanksha Gupta , Sneha Bobade , Gireesh Kolli , Anjali Kumari , AVIJIT MONDAL , Avinash Arepaka , Yasharah Mirza , Deepika Ramesh Babu , Shivam G - you might find this interesting!
Tagging #Leaders for wider reach:
Karen Broughton-Mabbitt Ben Thompson Matt Roberts Sanjay Nagchowdhury Richard Huegill Girish Kumar Maganti Nagaraja Kalyan Chakravarthy Nemani Sandip Kulkarni Saravanakumar Swajai Purush Yeshwant Patodia Prashanth Sonnad Math (Y) Gurbachan Singh ANANDA JOARDAR ANIruddha Mukherjee Sravan Lingam
I hope MuleSoft Community will not hate me for taking references from their Anypoint Portal or documentation ??
MuleSoft Practice Head and Architect | MuleSoft Ambassador | TOGAF 9 Certified | MuleSoft Meetup Leader and Speaker | 12x Salesforce Certified and 10x Superbadges | MuleSoft Delivery Champion | Trailhead Ranger | MBA
4 个月Thanks for sharing and mentioning my name.
Microsoft MVP | Daily tips to get better in .NET and C# | codingsonata.com | Technical Product Head at Aramex
1 年If anyone is interested to learn how to implement JWT Authentication in ASP .NET Core Web API in .NET 7, you can follow my tutorial which also includes an implementation for refreshing the tokens. Feel free to let me know if you have any comment. https://codingsonata.com/apply-jwt-access-tokens-and-refresh-tokens-in-asp-net-core-web-api/
Digital Transformation Specialist | Digital Development and Automation Manager | Systems Integration and Architecture Consultant
1 年Great article and helpful one as i am start working on the same to implement the JWT, thanks for sharing
Microsoft MVP | Daily tips to get better in .NET and C# | codingsonata.com | Technical Product Head at Aramex
1 年Great article Dipanjan, and thanks for the mention.