4D NetKit: Secure OpenID Authentication with nonce attribute
When working with modern authentication flows, security is paramount. Developers often need to integrate authentication with trusted identity providers such as Google or Microsoft. This is where OpenID Connect (OIDC) comes into play.
OIDC is an identity layer built on top of OAuth 2.0. It allows your application to verify the identity of a user and to obtain basic profile information in a secure way. Starting with the latest enhancements to the cs.NetKit.OAuth2Provider class, 4D 21 now makes it easier to work with OpenID Connect by supporting the nonce parameter, along with new token attributes, including the id_token.
4D NetKit: Decoding, Generating, and Validating JWT
JSON Web Tokens (JWT) have become a key standard for secure authentication and information exchange between systems. With JWT, you can transmit data in a secure, verifiable, and standardized way, reducing complexity while improving security. In particular, JWTs are essential when working with OpenID Connect, where they allow you to validate and decode the information returned by the OpenID provider.
Within the 4D 21, 4D NetKit provides a simple API to handle these tokens: decoding, generation, and validation.
4D NetKit: Simplifying OAuth 2.0 Redirects after authentication
4D NetKit just made redirecting users after OAuth 2.0 authentication easier with 4D 21. The OAuth2Provider class in 4D NetKit now allows real URLs for authenticationPage and authenticationErrorPage. This means you now have more redirection options after authentication, like a Qodly pages or HTTP Handlers. Whether the authentication succeeds or fails, you stay in control of the user experience with smooth, flexible redirection options.
Managing Calendar Events with Microsoft 365 or Google in 4D: Create, Update, Delete
Working with calendar events is a core part of many business applications. Whether you’re organizing a team meeting or managing an event’s life cycle, being able to create, update, and delete events programmatically is essential.
In this blog post, we’ll walk through how to perform these operations using the Office365.calendar or Google.calendar classes provided in 4D 20 R10, powered by the Microsoft Graph and Google Calendar APIs.
4D NetKit: Get Google and Microsoft 365 calendar events
Managing calendars and events is crucial for many applications, especially when integrating with popular services like Google Calendar and Microsoft 365. Starting with 4D 20 R9, you can easily retrieve and access calendars and events from these platforms with the new 4D NetKit commands. Whether you’re synchronizing schedules, building calendar-based features, or simply fetching event details, these commands enable seamless integration with Google and Microsoft 365 services.
4D NetKit: Use your web server host ports to retrieve your OAuth 2.0 authentication response
When using OAuth 2.0 authentication with 4D NetKit, you must define a redirect URI to indicate where the OAuth 2.0 server should return the authentication result. With 4D 20 R9, you can now use your host web server’s address and ports to retrieve your authentication responses. This enhancement streamlines the authentication process, prevents port conflicts, and improves security.
4D Netkit: Get user information from Google
Being able to access Google user information efficiently is critical for creating responsive user interfaces and automating tasks like sending emails to multiple users within a domain. To meet these requirements, we have introduced a set of features to get specific user information and to retrieve all domain profiles and contacts.
IMAP API: Retrieve Unread Email Counts for multiple mailboxes in One Call
Many of you rely on IMAP commands to display the number of unread emails in your app’s UI, helping users stay informed about new messages. With 4D 20 R7, we’ve enhanced the IMAPTransporter.getBoxList() function, enabling it to retrieve unread email counts and mailbox properties simultaneously, ensuring faster response times.
4D NetKit: Retrieve Unread Email Counts for multiple labels in One Call with Gmail API
A lot of you use Gmail commands to show the number of unread emails in your app’s UI to let users know about new messages. So, starting with 4D 20 R7, we’ve upgraded Google.mail.getLabelList() function so that it can get the number of unread emails along with label properties for Gmail all at once to ensure optimal response times.
4D Netkit: Customizing OAuth 2.0 Connection Interface
Some of you may need to manage the display of the connection interface during an OAuth 2.0 connection for design or technical reasons. From 4D 20 R6, you can choose not to automatically open a web browser to display the connection interface but use the authenticateURI to display it where you like.
In this blog post, we’ll walk through an example of opening the Microsoft login interface within a web area.
Contact us
Got a question, suggestion or just want to get in touch with the 4D bloggers? Drop us a line!
* Your privacy is very important to us. Please click here to view our Policy
