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

Add third party section #139

Closed
wants to merge 46 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
8b0a3be
Fixes: scroll issues on window and in some browsers
Chakravarthy7102 Feb 14, 2024
3505385
bump v0.10.3
Chakravarthy7102 Feb 14, 2024
acb8fa7
use native select element
Chakravarthy7102 Feb 14, 2024
58c83d8
Merge pull request #135 from supertokens/fix/scroll-isues
rishabhpoddar Feb 14, 2024
13c8b06
Add third party section
prateek3255 Feb 19, 2024
a1a9d37
Add third party provider listing section
prateek3255 Feb 21, 2024
447ad85
'Add third-party provider configuration UI
prateek3255 Feb 26, 2024
0c7aa98
Add client configuration collapsible section
prateek3255 Feb 27, 2024
51ea4bf
Improve toggle focus visuals
prateek3255 Feb 27, 2024
30037d2
Update third party UI to work with custom fields
prateek3255 Feb 28, 2024
b4a4ce7
Handle crud operations for built in providers
prateek3255 Feb 28, 2024
eadaabf
Use core APIs for core config list
prateek3255 Feb 29, 2024
3cc1746
Build custom provider UI
prateek3255 Feb 29, 2024
e17aeb9
Fix types
prateek3255 Mar 1, 2024
0240d1f
Refactor field inputs
prateek3255 Mar 4, 2024
80f965d
Integrate custom providers section
prateek3255 Mar 5, 2024
81430ec
Add prefix to third party field
prateek3255 Mar 6, 2024
c30dcf9
Add additional scopes to the client config
prateek3255 Mar 8, 2024
9a276cc
Improve ux when deleting user from dashboard
Chakravarthy7102 Mar 8, 2024
1bd5959
bump v0.10.4
Chakravarthy7102 Mar 8, 2024
9183773
Fixes deleting user linked accounts
Chakravarthy7102 Mar 8, 2024
ccf76b8
update changelog
Chakravarthy7102 Mar 8, 2024
a005773
Merge pull request #138 from supertokens/fix/delete-login-method
rishabhpoddar Mar 11, 2024
4df11c4
Merge pull request #137 from supertokens/improve/ux
rishabhpoddar Mar 11, 2024
024d90a
Handle merging providers based on different providers in core and static
prateek3255 Mar 13, 2024
b4ffa8c
Handle no login methods state
prateek3255 Mar 14, 2024
ba74d6f
Show relevant errors when no login methods added
prateek3255 Mar 18, 2024
03289c3
dashboard UI fixes
Chakravarthy7102 Mar 18, 2024
4ed6c2f
Add dialog to prompt adding providers when none added yet.
prateek3255 Mar 18, 2024
c773176
fixes: login methods UI issues
Chakravarthy7102 Mar 18, 2024
ce763f3
Add SAML provider configuration handling
prateek3255 Mar 19, 2024
271db5a
fixes issues in mobile for login methods
Chakravarthy7102 Mar 19, 2024
16a0e07
bump v0.10.5
Chakravarthy7102 Mar 19, 2024
15489bb
revert .vscode settings
Chakravarthy7102 Mar 19, 2024
edb88fb
remove double quotes and use simple boolean
Chakravarthy7102 Mar 19, 2024
3b25a24
Merge pull request #140 from supertokens/ui/fixes
rishabhpoddar Mar 19, 2024
0b6c1f5
Update PULL_REQUEST_TEMPLATE.md
rishabhpoddar Mar 19, 2024
6e816c2
Refactor tenant API routes for core config list eg/ fetching URL chan…
prateek3255 Mar 20, 2024
0060916
Use login methods API for fetching tenants
prateek3255 Mar 20, 2024
6ba131a
Update version
prateek3255 Mar 20, 2024
2a9f5fc
Merge pull request #141 from supertokens/fix/login-methods-api
rishabhpoddar Mar 20, 2024
53ba8a2
fix: Users List button not visible
prateek3255 Apr 1, 2024
ff2a430
Update changelog
prateek3255 Apr 1, 2024
57dedbb
Fix changelog date
prateek3255 Apr 1, 2024
5306c76
Merge pull request #142 from supertokens/fix/add-user-button
rishabhpoddar Apr 1, 2024
bfdbbd5
Merge remote-tracking branch 'origin/master' into add-third-party-sec…
prateek3255 Apr 2, 2024
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
6 changes: 6 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@
- [ ] Test default email and phoneNumber validations to ensure they are working properly.
- [ ] Test user-defined custom email and phoneNumber validators to ensure they are working properly.
- [ ] Test AccountLinking by creating an `emailpassword` and `passwordless` user with the same email and make sure that the accounts are linked.
- [ ] User details
- [ ] Can edit email of non third party login method if there is only 1 login method for the user
- [ ] Can edit email of non third party login method if there are >= 2 login methods for the user
- [ ] Deleting a non primary login method for a user only deletes that login method, and not the whole user
- [ ] Deleting a primary login method for a user deletes only that primary login method and not the user
- [ ] Deleting a user deletes all the login methods for that user as well

## Documentation changes

Expand Down
23 changes: 22 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [unreleased]

- Add initial tenants listing page
- Add Multitenancy Dashboard

## [0.11.1] - 2024-04-01

- Fixes a regression bug in user management dashboard that causes the add user button to not be visible when there is only one tenant.

## [0.11.0] - 2024-03-20

- Removes the tenants list API and uses the login methods API to get tenants and its login methods

## [0.10.5] - 2024-03-19

- Fixes UI bugs on search and Login methods section in userDetails page.

## [0.10.4] - 2024-03-08

- Improves UX when deleting a user from the dashboard.
- Fixes Deleting linked accounts on user details page.

## [0.10.3] - 2024-01-26

- Fixes scroll issues on diffrent browsers.

## [0.10.2] - 2024-01-26

Expand Down
80 changes: 4 additions & 76 deletions api_spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1231,47 +1231,6 @@ paths:
type: array
items:
type: string
/dashboard/api/tenants/list:
get:
tags:
- Multitenancy
summary: Get all tenants created in the core
responses:
200:
description: Success
content:
application/json:
schema:
type: object
properties:
status:
type: string
default: "OK"
coreConfig:
type: object
tenants:
type: array
items:
type: object
properties:
tenantId:
type: string
emailPassword:
type: object
properties:
enabled:
type: boolean
passwordless:
type: object
properties:
enabled:
type: boolean

thirdParty:
type: object
properties:
enabled:
type: boolean
/dashboard/api/tenants/login-methods:
get:
tags:
Expand All @@ -1295,41 +1254,10 @@ paths:
properties:
tenantId:
type: string
emailPassword:
type: object
properties:
enabled:
type: boolean
thirdPartyEmailPassword:
type: object
properties:
enabled:
type: boolean
nullable: true
passwordless:
type: object
properties:
enabled:
type: boolean
contactMethod:
type: string
enum: [PHONE, EMAIL, EMAIL_OR_PHONE]
nullable: true
thirdPartPasswordless:
type: object
properties:
enabled:
type: boolean
contactMethod:
type: string
enum: [PHONE, EMAIL, EMAIL_OR_PHONE]
nullable: true
nullable: true
thirdParty:
type: object
properties:
enabled:
type: boolean
firstFactors:
type: array
items:
type: string

/dashboard/api/userroles/roles:
get:
Expand Down
9 changes: 9 additions & 0 deletions build/asset-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"main.js": "/static/js/bundle.js",
"static/js/787.bundle.js": "/static/js/787.bundle.js",
"static/media/auth-background.png": "/static/media/auth-background.png",
"static/media/provider-okta.png": "/static/media/provider-okta.png",
"static/media/auth-background-portrait.png": "/static/media/auth-background-portrait.png",
"static/media/provider-bitbucket.png": "/static/media/provider-bitbucket.png",
"static/media/provider-active-directory.png": "/static/media/provider-active-directory.png",
"static/media/favicon.ico": "/static/media/favicon.ico",
"static/media/ST_icon_light_theme.svg": "/static/media/ST_icon_light_theme.svg",
"static/media/ST_full_logo_dark_theme.svg": "/static/media/ST_full_logo_dark_theme.svg",
Expand All @@ -26,8 +29,12 @@
"static/media/plus.svg": "/static/media/plus.svg",
"static/media/green-check.svg": "/static/media/green-check.svg",
"static/media/tenant-management.svg": "/static/media/tenant-management.svg",
"static/media/close-inactive.svg": "/static/media/close-inactive.svg",
"static/media/close-active.svg": "/static/media/close-active.svg",
"static/media/clear.svg": "/static/media/clear.svg",
"static/media/provider-apple.svg": "/static/media/provider-apple.svg",
"static/media/provider-discord.svg": "/static/media/provider-discord.svg",
"static/media/provider-linkedin.svg": "/static/media/provider-linkedin.svg",
"static/media/search.png": "/static/media/search.png",
"static/media/phone-no.svg": "/static/media/phone-no.svg",
"static/media/provider-google.svg": "/static/media/provider-google.svg",
Expand All @@ -41,6 +48,7 @@
"static/media/edit-login-method.png": "/static/media/edit-login-method.png",
"static/media/mail.svg": "/static/media/mail.svg",
"static/media/lock-opened.svg": "/static/media/lock-opened.svg",
"static/media/provider-twitter.svg": "/static/media/provider-twitter.svg",
"static/media/eye.svg": "/static/media/eye.svg",
"static/media/envelope-green.svg": "/static/media/envelope-green.svg",
"static/media/delete.svg": "/static/media/delete.svg",
Expand All @@ -54,6 +62,7 @@
"static/media/copy.svg": "/static/media/copy.svg",
"static/media/delete-login-method.png": "/static/media/delete-login-method.png",
"static/media/close-icon.svg": "/static/media/close-icon.svg",
"static/media/provider-gitlab.svg": "/static/media/provider-gitlab.svg",
"static/media/edit.svg": "/static/media/edit.svg",
"static/media/right_arrow_icon.svg": "/static/media/right_arrow_icon.svg",
"static/media/trash.svg": "/static/media/trash.svg",
Expand Down
4 changes: 2 additions & 2 deletions build/static/css/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/static/css/main.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/static/js/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/static/js/bundle.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions build/static/media/close-active.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions build/static/media/close-inactive.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/static/media/provider-active-directory.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/static/media/provider-bitbucket.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions build/static/media/provider-discord.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions build/static/media/provider-gitlab.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions build/static/media/provider-linkedin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/static/media/provider-okta.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions build/static/media/provider-twitter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dashboard",
"version": "0.10.2",
"version": "0.11.1",
"private": true,
"dependencies": {
"@babel/core": "^7.16.0",
Expand Down
2 changes: 1 addition & 1 deletion server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import ThirdParty from "supertokens-node/recipe/thirdparty";
import UserMetaData from "supertokens-node/recipe/usermetadata";
import UserRoles from "supertokens-node/recipe/userroles";

const websiteDomain = "http://localhost:3000";
const websiteDomain = "http://localhost:5173";

let app = express();
app.use(morgan("[:date[iso]] :url :method :status :response-time ms - :res[content-length]"));
Expand Down
Loading
Loading