Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ALS-6655 & ALS-6699] Login, Themes, & Dynamic authentication providers #62

Merged
merged 20 commits into from
Jun 21, 2024

Conversation

JamesPeck
Copy link
Collaborator

@JamesPeck JamesPeck commented May 28, 2024

ALS-6655 & ALS-6699
Includes changes from #73

This PR is to allow for admins of pic-sure to easily add new auth providers. We currently Support:

  • Gen3 Fence
  • Auth0
  • RAS

Admin can edit values in their .env files.
VITE_AUTH_PROVIDER_MODULE is the prefix for any authorization providers you want to use.
We currently support 3 types of authorization providers: AUTH0, Gen3 FENCE, and RAS.
You can add as many authorization providers as you want by adding more VITE_AUTH_PROVIDER_MODULE_ variables.
You can have n number of each type of authorization provider. When the server starts it will automatically add the authorization providers to the login page if they are enabled.The pattern for adding authorization providers is as follows: VITE_AUTH_PROVIDER_MODULE_<PROVIDER_NAME>_<FIELD>=<VALUE>

See .env.example

Adds new themes & logos

@JamesPeck JamesPeck added the enhancement New feature or request label May 28, 2024
@JamesPeck JamesPeck requested a review from srpiatt May 28, 2024 19:42
@JamesPeck JamesPeck marked this pull request as ready for review June 7, 2024 18:37
@JamesPeck JamesPeck force-pushed the feature/dynamic-login-options branch from 3b7cec7 to fada722 Compare June 10, 2024 18:38
src/hooks.server.ts Outdated Show resolved Hide resolved
src/lib/auth/AUTH0.ts Show resolved Hide resolved
src/lib/auth/AUTH0.ts Outdated Show resolved Hide resolved
src/lib/auth/AUTH0.ts Outdated Show resolved Hide resolved
src/lib/auth/FENCE.ts Outdated Show resolved Hide resolved
src/lib/components/LoginButton.svelte Outdated Show resolved Hide resolved
src/lib/components/LoginButton.svelte Outdated Show resolved Hide resolved
src/lib/configuration.ts Outdated Show resolved Hide resolved
src/routes/(authentication)/login/loading/+page.svelte Outdated Show resolved Hide resolved
src/routes/(authentication)/login/loading/+page.svelte Outdated Show resolved Hide resolved
@srpiatt
Copy link
Contributor

srpiatt commented Jun 20, 2024

Is this PR for ALS-6655?

@JamesPeck JamesPeck changed the title Dynamic authentication providers [ALS-6655] Dynamic authentication providers Jun 21, 2024
@JamesPeck JamesPeck force-pushed the feature/dynamic-login-options branch from 2f96b8f to 2714088 Compare June 21, 2024 17:05
@JamesPeck JamesPeck changed the title [ALS-6655] Dynamic authentication providers [ALS-6655 & ALS-6699] Dynamic authentication providers Jun 21, 2024
@JamesPeck JamesPeck changed the title [ALS-6655 & ALS-6699] Dynamic authentication providers [ALS-6655 & ALS-6699] Login, Themes, & Dynamic authentication providers Jun 21, 2024
@JamesPeck JamesPeck merged commit a8c79d2 into dev Jun 21, 2024
3 checks passed
@JamesPeck JamesPeck deleted the feature/dynamic-login-options branch June 21, 2024 20:07
@JamesPeck JamesPeck restored the feature/dynamic-login-options branch June 21, 2024 20:21
@JamesPeck JamesPeck deleted the feature/dynamic-login-options branch June 26, 2024 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants