Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
70a572a
chore: Prelim cognito integration with Amplify Authenticator component
Gurpranked Dec 26, 2024
370f8a5
feat: Working integration with AWS Cognito, issues with SSL at Server
Gurpranked Dec 26, 2024
fc596e1
chore: Update PR build check and deployment with env variables
Gurpranked Dec 26, 2024
54bd3aa
chore: Update Docusaurus to 3.6.3, fast compilation not enabled
Gurpranked Dec 28, 2024
e99e84c
chore: Documentation update and working configuration for local HTTPS…
Gurpranked Dec 28, 2024
4fef860
chore: Provide environment file template, update readme with addition…
Gurpranked Dec 28, 2024
1947184
quickfix: Correct deploy and build configs for github
Gurpranked Dec 28, 2024
ecbfcaa
chore: Update GitHub build and deploy configs to use the Migration AP…
Gurpranked Jan 1, 2025
e9fdc9d
feat: Some terraform VPC integrations
Gurpranked Jan 6, 2025
fea090c
Merge branch 'main' into feat/Add-OAuth-with-Cognito
Gurpranked Jan 17, 2025
d7f41e9
fix: Disable local env file dependency
Gurpranked Jan 17, 2025
9aeda7d
Merge branch 'feat/Add-OAuth-with-Cognito' of github.com:UMLCloudComp…
Gurpranked Jan 17, 2025
c3f033c
fix: Syntax error correction
Gurpranked Jan 17, 2025
2363d48
fix: Correction to docusaurus dependency for dotenv
Gurpranked Jan 19, 2025
6d98494
chore: Removal of deprecated content and audit to markdown content (s…
Gurpranked Jan 19, 2025
ca4c814
feat: Add UI to Navbar for logged in state, minor markdown updates, r…
Gurpranked Jan 20, 2025
cae85cb
feat: Added unique hello message for authenticated session, prelim wo…
Gurpranked Jan 20, 2025
8626a85
chore: Updated prelim code for account page, changed routing names, a…
Gurpranked Jan 20, 2025
bb95bf8
fix: Comment out dotenv dependency
Gurpranked Jan 20, 2025
4bb6afd
fix: Correcting the dependency issue again
Gurpranked Jan 20, 2025
1447b02
fix: Trying to correct the dependency issue again
Gurpranked Jan 20, 2025
f05625f
fix: Revert removal of dotenv dependency
Gurpranked Jan 20, 2025
fecb0d6
fix: Audit gh actions workflow config to utilize explicit environment
Gurpranked Jan 20, 2025
ddc458d
fix: Correction to workflow
Gurpranked Jan 20, 2025
1fbb33f
fix: Typo correction
Gurpranked Jan 20, 2025
5bac7a1
fix: Attempting alternative approach to build config for workflow
Gurpranked Jan 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:

jobs:
build:

environment: github-pages

runs-on: ubuntu-latest

steps:
Expand All @@ -18,8 +21,22 @@ jobs:
with:
node-version: '22'

- name: Install dependencies
- name: Install dependencies & configure AWS Cognito Env Variables
run: npm install

env:
ENV: ${{ vars.ENV }}
REGION: ${{ vars.REGION }}
USER_POOL_ID: ${{ secrets.USER_POOL_ID }}
USER_POOL_WEB_CLIENT_ID: ${{ secrets.USER_POOL_WEB_CLIENT_ID }}
OAUTH_DOMAIN: ${{ secrets.OAUTH_DOMAIN }}
OAUTH_REDIRECT_SIGN_OUT: ${{ vars.OAUTH_REDIRECT_SIGN_OUT }}
OAUTH_REDIRECT_SIGN_RESPONSE_TYPE: ${{ vars.OAUTH_REDIRECT_SIGN_RESPONSE_TYPE }}
AUTHORITY: ${{ secrets.AUTHORITY }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
REDIRECT_URI: ${{ vars.REDIRECT_URI }}
SCOPE: ${{ vars.SCOPE }}
MIGRATION_API_KEY: ${{ secrets.MIGRATION_API_KEY }}

- name: Build Docusaurus site
run: npm run build
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,21 @@ jobs:
with:
node-version: '22'

- name: Install dependencies
- name: Install dependencies & configure AWS Cognito Env Vars and Secrets
run: npm install
env:
ENV: ${{ vars.ENV }}
REGION: ${{ vars.REGION }}
USER_POOL_ID: ${{ secrets.USER_POOL_ID }}
USER_POOL_WEB_CLIENT_ID: ${{ secrets.USER_POOL_WEB_CLIENT_ID }}
OAUTH_DOMAIN: ${{ secrets.OAUTH_DOMAIN }}
OAUTH_REDIRECT_SIGN_OUT: ${{ vars.OAUTH_REDIRECT_SIGN_OUT }}
OAUTH_REDIRECT_SIGN_RESPONSE_TYPE: ${{ vars.OAUTH_REDIRECT_SIGN_RESPONSE_TYPE }}
AUTHORITY: ${{ secrets.AUTHORITY }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
REDIRECT_URI: ${{ vars.REDIRECT_URI }}
SCOPE: ${{ vars.SCOPE }}
MIGRATION_API_KEY: ${{ secrets.MIGRATION_API_KEY }}

- name: Fetch Latest Documentation
run: npm run import
Expand Down
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,17 @@ yarn-error.log*
# AWS Secrets
IAM_Automation/aws_creds.py

# HTTPS pem files
# Terraform Stack build files
.terraform
.terraform.lock.hcl

# Localhost HTTPS pem files
*.pem

# Terraform Stack files
*.hcl
.terraform


# Igonre everyhting in docs/activities except md files in the root of docs/activities
docs/activities/*
!docs/activities/*.md
Expand Down
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,28 @@ To add a new activity's instructions onto the activities section of the website,
```
4. Make a Pull Request to merge your branch into **main**. Your activity will be added to the website once the PR is approved and merged.

## 🔬 Login Development
In order to develop with OIDC support locally, HTTPS is required for localhost. This can done easily by creating an SSL certificate for local use.
Here are the steps:
1. Run `mkcert localhost` to generate `localhost.pem` and `localhost-key.pem`
2. Run `mkcert -install` to install the generated certificate in your trust store. After installed, restart your browser.
3. Now you can start the development session as follows:
```zsh
HTTPS=true SSL_CRT_FILE=localhost.pem SSL_KEY_FILE=localhost-key.pem npm start
```
4. Open `https://localhost:3000/` to view your development session rendered to the browser.

>[!CAUTION]
> Never share your generated `.pem`! The `.gitignore` file is preconfigured to ignore `.pem` files within commits. There are severe security complications in exposing your `.pem` files.

>[!NOTE]
> If you don't have access to the `mkcert` command on your system, refer [here](https://github.com/FiloSottile/mkcert) to install `mkcert`.

Similarly, some local environment variables must be specified in order to ensure functionality:
1. Create a copy of the file called `env.template`
2. Within this file populate the provided variables using information available on the AWS Console for Cognito.
3. Once populated with the correct information, authentication should work correctly

## 🎉Acknowledgements
Many thanks to the [UMass Lowell Cloud Computing Club](https://umasslowellclubs.campuslabs.com/engage/organization/cloudcomputingclub) members, our faculty advisor [Dr. Johannes Weis](https://www.uml.edu/sciences/computer-science/people/weis-johannes.aspx), and the [UMass Lowell Computer Science Department](https://www.uml.edu/Sciences/computer-science/) for their support and guidance.

Expand Down
7 changes: 0 additions & 7 deletions docs/resources/intro-cloud-computing/_category_.json

This file was deleted.

7 changes: 0 additions & 7 deletions docs/resources/intro-cloud-computing/account-setup.md

This file was deleted.

5 changes: 5 additions & 0 deletions docs/schedule/2024Fall/2024Fall.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ ogTitle: Meeting Schedule for Fall 2024
ogDescription: Explore the Fall 2024 meeting schedule for the UMass Lowell Cloud Computing Club. Join us for virtual and hybrid sessions every week, featuring expert presentations, hands-on activities, and collaborative projects like UniPath.io. Stay engaged, learn from industry leaders, and contribute to exciting cloud computing initiatives.
---

:::danger
This schedule is outdated and refers to a past semester. Please check the [latest schedule](../current-schedule) for current information.
:::


<center>

[![Website](https://img.shields.io/badge/Website-UML%20Engage-blue.svg?style=for-the-badge)](https://umasslowellclubs.campuslabs.com/engage/organization/cloudcomputingclub)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_position: 3
title: 🌿 Spring 2023
title: 🌿 Spring 2024
slug: /schedule/spring-2023
---

Expand Down
7 changes: 3 additions & 4 deletions docs/schedule/2025Spring/2025Spring.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@ ogDescription: Explore the Spring 2025 meeting schedule for the UMass Lowell Clo
## 📆 Meeting Schedule

**Events & Meeting Location**:
- https://sesh.fyi/calendar/890983857938116729
- https://umasslowellclubs.campuslabs.com/engage/organization/cloudcomputingclub/events

**Meeting Time**:

- **🏫 Thursdays (In-person/Hybrid)**: 6:30pm-9:30pm
- **🏫 Thursdays (In-person/Hybrid)**: 6:30pm-8:00pm

:::tip
Virtual and hybrid meetings will be hosted on our [Discord server](https://discord.com/invite/WC2NdqYtDt).
Expand All @@ -34,8 +33,8 @@ Virtual and hybrid meetings will be hosted on our [Discord server](https://disco
**Meeting Format**:

- **🏫 Thursdays (In-person/Hybrid)**: These meetings follow a more structured format with two key segments:
- **📊 Presentation Section (6:30pm-8:00pm)**: Reserved for presentations, demos, and guest speakers. The content aligns with the weekly topics and provides an opportunity for members to learn from experts in the field.
- **💻 Hands-On Section (8:00pm-9:30pm)**: Focused on practical application of the concepts discussed during the presentation. Members work together on the semester project or other related activities, fostering collaboration and hands-on learning.
- **📊 Presentation Section (6:30pm-7:00pm)**: Reserved for presentations, demos, and guest speakers. The content aligns with the weekly topics and provides an opportunity for members to learn from experts in the field.
- **💻 Hands-On Section (7:00pm-8:00pm)**: Focused on practical application of the concepts discussed during the presentation. Members work together on the semester project or other related activities, fostering collaboration and hands-on learning.

:::info
- 🟢 Meeting with confirmed speakers/topics
Expand Down
117 changes: 64 additions & 53 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,22 @@ const config = {
],
],

// plugins: [
// [
// '@docusaurus/plugin-content-docs',
// {
// id: 'projects',
// path: './projects',
// routeBasePath: './projects',
// sidebarPath: 'projectsSidebars.js',
// },
// ],
// ],
plugins: [
[
"docusaurus-plugin-dotenv",
{
path: "./.env.local",
systemvars: true,
},
// '@docusaurus/plugin-content-docs',
// {
// id: 'projects',
// path: './projects',
// routeBasePath: './projects',
// sidebarPath: 'projectsSidebars.js',
// },
],
],
themes: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
Expand Down Expand Up @@ -127,6 +132,7 @@ const config = {
alt: 'UML Cloud Computing Club Logo',
src: 'img/logo_icon.png',
},
hideOnScroll: true,
items: [

// Schedule
Expand Down Expand Up @@ -167,54 +173,51 @@ const config = {
position: 'left',
label: 'Activities',
},

// Github
{
href: 'https://github.com/UMLCloudComputing',
'aria-label': 'GitHub',
className: 'navbar__icon navbar__github',
position: 'right',
html: '<i class="fa fa-github"></i>',
},
// Coder CDE link, will be integrated to the account settings page instead
// {
// href: "https://coder.umlcloudcomputing.org",
// position: "right",
// label: "Coder CDE"
// },

// Socials (Discord, Instagram, LinkedIn)
{
type: 'dropdown',
label: 'Socials',
position: 'right',
items: [
// // Socials (Discord, Instagram, LinkedIn)
// {
// type: 'dropdown',
// label: 'Socials',
// position: 'right',
// items: [

// Discord
{
href: 'https://discord.gg/WC2NdqYtDt',
label: 'Discord',
},
// // Discord
// {
// href: 'https://discord.gg/WC2NdqYtDt',
// label: 'Discord',
// },

// Youtube
{
href: 'https://www.youtube.com/@UMLCloudComputingClub',
label: 'Youtube',
},
// // Youtube
// {
// href: 'https://www.youtube.com/@UMLCloudComputingClub',
// label: 'Youtube',
// },

// Instagram
{
href: 'https://www.instagram.com/umlcloudcomputing/',
label: 'Instagram',
},
// // Instagram
// {
// href: 'https://www.instagram.com/umlcloudcomputing/',
// label: 'Instagram',
// },

// LinkedIn
{
href: 'https://www.linkedin.com/company/umass-lowell-cloud-computing-club/',
label: 'LinkedIn',
},
// // LinkedIn
// {
// href: 'https://www.linkedin.com/company/umass-lowell-cloud-computing-club/',
// label: 'LinkedIn',
// },

// Engage
{
href: 'https://umasslowellclubs.campuslabs.com/engage/organization/cloudcomputingclub',
label: 'Engage',
},
]
},
// // Engage
// {
// href: 'https://umasslowellclubs.campuslabs.com/engage/organization/cloudcomputingclub',
// label: 'Engage',
// },
// ]
// },
],
},
footer: {
Expand All @@ -239,6 +242,14 @@ const config = {
label: 'LinkedIn',
href: 'https://www.linkedin.com/company/umass-lowell-cloud-computing-club/',
},
{
href: 'https://www.youtube.com/@UMLCloudComputingClub',
label: 'Youtube',
},
{
href: 'https://www.instagram.com/umlcloudcomputing/',
label: 'Instagram',
},
],
},
{
Expand Down
34 changes: 34 additions & 0 deletions env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
## .env.local

## i.e: localhost, dev, prod
ENV="localhost"

## AWS Cognito Region
REGION="us-east-1"

## AWS Cognito User Pool ID
USER_POOL_ID=""

## AWS Cognito User Pool App Client ID
USER_POOL_WEB_CLIENT_ID=""

## AWS Cognito Domain
OAUTH_DOMAIN=""

## Cognito redirect url after a successful sign-out
OAUTH_REDIRECT_SIGN_OUT="https://localhost:3000,https://umlcloudcomputing.org"

## Cognito setup, no need to change it!
OAUTH_REDIRECT_SIGN_RESPONSE_TYPE="code"

## OIDC Authority
AUTHORITY=""

## Client ID
CLIENT_ID=""

## Redirect URI
REDIRECT_URI=""

## Scope
SCOPE="email openid phone"
Loading
Loading