VOOZH about

URL: https://www.javacodegeeks.com/2022/06/workflows-tips-24-hookbin-to-inspect-http-requests-testing-read-user-read-group-cards-and-sending-html-email.html

⇱ Workflows Tips #24: Hookbin to Inspect HTTP Requests, Testing Read User & Read Group Cards, and Sending HTML Email - Java Code Geeks


Welcome to another Okta Workflows Tips post. Read all previous tips.

In this post:

  • Use Hookbin to capture and inspect HTTP requests
  • Testing Read User and Read Group cards
  • Sending HTML email

Use Hookbin to capture and inspect HTTP requests

This tip is from Bryan Barrows, Workflows Builder Advocate at Okta.

A good tip, particularly when sending a raw request with API Connector card, or trying to compare request with Postman, is to send a request to a service like Hookbin that allows you inspect what’s being sent from Workflows and compare it with your other request.

πŸ‘ Image
API Connector – Post card

Going over to Hookbin web site you inspect the request. You see the HTTP headers, query string, and body of the request. If request payload is correct with Hookbin, you can try sending it to an actual service.

πŸ‘ Image
Inspecting an HTTP request on Hookbin

And a tip within a tip. We covered a similar service called httpbin you might also like.

Testing Read User and Read Group cards

Testing individual cards in a flow is highly encouraged. When using Okta – Read User or Okta – Read Group card, the test will prompt you to enter an ID for a user or a group.

To get a user ID, go to the Admin console > Directory > People and choose a person to view. Their ID will be in the browser address bar.

πŸ‘ Image
Getting user ID

With the user ID you can quickly test the Read User card:

πŸ‘ Image
Testing Read User card

Similarly, when testing Okta – Read Group card, go to Admin console > Directory > Groups, click on a group name.

πŸ‘ Image
Getting group ID

Using a group ID to test a card:

πŸ‘ Image
Testing Read Group card

Sending HTML email

Both, Gmail – Send Email and Office 365 Mail – Send Email support sending HTML email.

In Gmail – Send Email card, the HTML setting is in Options:

πŸ‘ Image
Send as HTML email option

In Office 365 Mail – Send Email card, the HTML option is one of the card fields:

πŸ‘ Image
Office 365 Mail card HTML option

The Text – Compose card supports HTML so you can write an email like this:

Received HTML email:


Published on Java Code Geeks with permission by Max Katz , partner at our JCG program. See the original article here: Workflows Tips #24: Hookbin to Inspect HTTP Requests, Testing Read User & Read Group Cards, and Sending HTML Email

Opinions expressed by Java Code Geeks contributors are their own.

Do you want to know how to develop your skillset to become a Java Rockstar?
Subscribe to our newsletter to start Rocking right now!
To get you started we give you our best selling eBooks for FREE!
1. JPA Mini Book
2. JVM Troubleshooting Guide
3. JUnit Tutorial for Unit Testing
4. Java Annotations Tutorial
5. Java Interview Questions
6. Spring Interview Questions
7. Android UI Design
and many more ....
I agree to the Terms and Privacy Policy

Thank you!

We will contact you soon.

πŸ‘ Photo of Max Katz
Max Katz
June 16th, 2022Last Updated: June 14th, 2022
0 223 2 minutes read
Back to top button
Close
wpDiscuz