codetheorem's Blog

Added Sorting Functionality

codetheorem
Published: 08/10/2022

Sorting is done for giving better UX experience to our users.

What did I do this week?

Fixed the sorting functionality in User Story. Previously sorting was being done in frontend but the problem with that was it was only sorting the paginated data and not the whole data so to solve this I updated the controller in strapi to sort the data and send back sorted and paginated data. I also updated the graphql call to accommodate the new changes. 

What is coming up next?

New UI updates.

Did I get stuck anywhere?

No, It well went.

View Blog Post

Documentation of SSO Integration

codetheorem
Published: 08/04/2022

For our users  to use SSO documentation should be there for setting it up.

What did I do this week?

Added documentation for setting up Okta as SSO provider in User Story.

What is coming up next?

Tests for Okta Integration.

Did I get stuck anywhere?

No,

View Blog Post

SSO work completed in backend.

codetheorem
Published: 07/28/2022

SSO is working and running.

What did I do this week?

I integrated the SSO in our Strapi Backend using the existing Users and Permissions Plugin.

What is coming up next?

Tests and SSO utilization in the Frontend of the User Story.

Did I get stuck anywhere?

No, This time everything was under control.

View Blog Post

Creating a Strapi Plugin (Part 2)

codetheorem
Published: 07/21/2022

This is the second part of the Strapi plugin development series.

What did I do this week?

I completed the UI or the admin panel of our plugin. Our UI takes the credentials from the admin and then saves it to the Strapi store for future use. It takes credentials like Client ID,Client Secret etc. For building our admin UI we used buffet.js which is the UI library of Strapi. We tried to keep our UI as simple as possible and user friendly.

What is coming up next?

After this I am working on adding different routes to the plugin and creating corresponding controllers for them. We are following MVC architecture in development.

Did I get stuck anywhere?

No, This time everything was under control.

View Blog Post

Creating a Strapi Plugin (Part 1)

codetheorem
Published: 07/15/2022

As I stated in my previous blog I will be working on a local Strapi Plugin to handle our Okta SSO authentication. So I started working on that. 

What did I do this week?

I started working on creating a local plugin for our backend which is created using Strapi which is a headless CMS. The need for plugin is that we want our users to use SSO authentication method. So making a plugin in Strapi has two faces one is which our admin sees that is UI and other is the backend part that is models, controllers etc associated with it.

The objectives of this plugin is -

  1. Create a redirect URI that can be consumed by the front-end of User story.
  2. Verify JWT tokens and secure the API routes.
  3. Sync the user database with Okta database.

What is coming up next?

After completion of UI of this plugin I will be working on backend part of this plugin and integration with our main site.

Did I get stuck anywhere?

While working on this plugin I was not able to use hot-reload but after talking with a developer relations manager of Strapi.js my doubts were cleared.

View Blog Post