codetheorem's Blog

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

Adding SSO in Frontend.

codetheorem
Published: 07/14/2022

My Task is to add SSO which means Single Sign On in our application EOS User Story. So I am doing this work in three phases .Currently working on implementing the first phase.

What did I do this week?

This week I worked on Okta setup which will serve as identity provider for our application. So we are using OpenID connect authentication method for authenticating users. After this I worked on adding the Okta SDK for react in the frontend of our application. So now our application can handle two authentication methods one is by using your Email Id and Password which is validated by our backend and one is our Okta SSO authentication method.

What is coming up next?

After this I will be working on adding JWT validator in our backend and write new test cases to handle the integration of new authentication scheme.

Did I get stuck anywhere?

Yes while adding Okta I was trying to add it as a new provider in the existing Roles and Permission plugin of Strapi so rather than updating it I am in process of making a custom plugin that handles all our needs.

View Blog Post

Starting off with EOS User Story

codetheorem
Published: 06/25/2022

I am really excited to work at The EOS Design System. I have started working on a EOS User Story which is a feature request system. I am working with a awesome team that is very excited for this project. I will working on adding new features in the system.

What did I do this week?

This week I worked on setting up the codebase and debugged issues that were coming in setting up the Strapi backend codebase. I also did some research on SSO and SAML 2.0 technologies which are used for authentications in applications. I studied the documentation of Okta which is an identity platform. I helped my other teammates in setting up the project.

I discussed the implementation of Single Sign-On feature with my mentors and teammates. This is the most important feature that we will be adding this summer.  

What is coming up next?

I will be implementing Single Sign-On with basic customizations and will work on adding more customizations.

Did I get stuck anywhere?

When I was working on Okta Dashboard I got stuck while choosing which authentication technique should be used for application but it was solved after discussion with the seniors.

 

View Blog Post