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

[WIP] Auth Upgrade #420

Merged
merged 46 commits into from
Oct 13, 2021
Merged
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
004f72f
Implemented already completed auth upgrade
jaxoncreed Aug 5, 2021
3d7ed6d
Fixed tests and linter
jaxoncreed Aug 10, 2021
bebc165
Revert autocomplete snapshot
jaxoncreed Aug 10, 2021
2a96f54
Merge branch 'fix-tests' of github.com:solid/solid-ui into auth-upgrade
jaxoncreed Aug 10, 2021
bee76ab
Fixed tests for client-auth-browser
jaxoncreed Aug 10, 2021
7f2ab83
Handle token refresh
jaxoncreed Aug 11, 2021
5980cc1
Begin building sign up box
jaxoncreed Aug 12, 2021
39ee1e2
Added login UI
jaxoncreed Aug 12, 2021
885d6d0
Fix logout
jaxoncreed Aug 12, 2021
199a82f
removed insane margin
jaxoncreed Aug 16, 2021
0482c8a
Once again removed the large margin
jaxoncreed Aug 17, 2021
0fc3b9f
Saves the hash before redirecting
jaxoncreed Aug 20, 2021
59b4d4a
Fixed redirecting back to the original login url
jaxoncreed Aug 20, 2021
a83ac3a
Update authn.ts
jeff-zucker Aug 24, 2021
4f98993
Data-Kitchen modification
jeff-zucker Aug 24, 2021
d137c67
fixed ReferenceError: TextEncoder is not defined
timea-solid Aug 25, 2021
e47ceb2
Merge pull request #425 from theRealImy/auth-upgrade
bourgeoa Aug 25, 2021
fd18c97
Merge pull request #424 from solid/jeff-zucker-patch-2
jaxoncreed Aug 25, 2021
511f0b7
Merge pull request #423 from solid/jeff-zucker-patch-1
jaxoncreed Aug 25, 2021
4eba494
Reloaded the page on logout
jaxoncreed Aug 25, 2021
2b95510
Merge branch 'auth-upgrade' of github.com:solid/solid-ui into auth-up…
jaxoncreed Aug 25, 2021
bb4a75f
Fixed listed IDPs
jaxoncreed Aug 25, 2021
05207d5
Removed linter problems
jaxoncreed Aug 25, 2021
e35526e
factored popup selector into its own function
jaxoncreed Aug 26, 2021
b5a9e0e
add renderSignInPopupand update to [email protected]
bourgeoa Aug 28, 2021
9c07702
v2.4.9-alpha
bourgeoa Aug 30, 2021
5eab441
Cleanup proptery names for appContext
jeff-zucker Aug 30, 2021
b7043cc
Used currentUser func
jaxoncreed Aug 31, 2021
1b1c630
merge
jaxoncreed Aug 31, 2021
197e2bd
Merge pull request #426 from solid/jeff-zucker-patch-1
jaxoncreed Sep 1, 2021
8071d4d
Trigger logout route when you log out
jaxoncreed Sep 10, 2021
0113890
tweak the way checkbox values are pulled out
timbl Sep 12, 2021
a2a92e2
Merge branch 'auth-upgrade' of github.com:solid/solid-ui into auth-up…
jaxoncreed Sep 14, 2021
0f6c4da
pushState seems to want a title
timbl Sep 14, 2021
b9a60fb
pushState seems to want a title - 2
timbl Sep 14, 2021
575cd26
Merge pull request #430 from solid/authn-fix-pagejump
bourgeoa Sep 15, 2021
6311261
update @inrupt/[email protected]
bourgeoa Sep 16, 2021
78b68ac
Added credentials option on logout fetch
jaxoncreed Sep 28, 2021
da0a788
Merge branch 'auth-upgrade' of github.com:solid/solid-ui into auth-up…
jaxoncreed Sep 29, 2021
81fc5d3
v2.4.9-beta
bourgeoa Sep 30, 2021
6c07e92
removed old login in storybook examples
timea-solid Oct 7, 2021
065c4ce
cleaned header code (which is not yet used in production)
timea-solid Oct 7, 2021
bfd04f9
cleanup of tests from old solid-auth-client lib
timea-solid Oct 7, 2021
befe440
revert test result to previous change otherwise test fails
timea-solid Oct 12, 2021
53b51fd
revert test result to previous change otherwise test fails
timea-solid Oct 12, 2021
d62955c
update jest config
bourgeoa Oct 13, 2021
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: 1 addition & 5 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@
],
"rules": {
"no-console": "error",
"complexity": ["warn", 15],
"no-unused-vars": ["warn", {
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["warn", {
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
Expand Down
433 changes: 242 additions & 191 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"homepage": "https://github.com/solid/solid-ui",
"dependencies": {
"@babel/runtime": "^7.14.0",
"@inrupt/solid-client-authn-browser": "^1.10.1",
"crypto-browserify": "^3.12.0",
"escape-html": "^1.0.3",
"jss": "^10.6.0",
Expand All @@ -63,7 +64,6 @@
"path-browserify": "^1.0.1",
"postcss-flexbugs-fixes": "^5.0.2",
"rdflib": "^2.2.6",
"solid-auth-client": "^2.5.6",
"solid-logic": "^1.3.6",
"solid-namespace": "^0.5.1",
"stream-browserify": "^3.0.0",
Expand Down Expand Up @@ -101,7 +101,6 @@
"postcss-flexbugs-fixes": "^5.0.2",
"raw-loader": "^4.0.2",
"react-is": "^17.0.1",
"solid-auth-cli": "^1.0.15",
"standard": "^16.0.3",
"ts-jest": "^26.4.4",
"typedoc": "^0.21.1",
Expand Down
2 changes: 0 additions & 2 deletions src/acl/access-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ import { graph, NamedNode, UpdateManager } from 'rdflib'
import { AccessGroups } from './access-groups'
import { DataBrowserContext } from 'pane-registry'
import { shortNameForFolder } from './acl-control'
import { currentUser } from '../authn/authn'
import * as utils from '../utils'
import * as debug from '../debug'
import ns from '../ns'

/**
* Rendered HTML component used in the databrowser's Sharing pane.
Expand Down
22 changes: 22 additions & 0 deletions src/authn/authSession.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import {
Session,
getClientAuthenticationWithDependencies
} from '@inrupt/solid-client-authn-browser'

let authSession: Session
// @ts-ignore
if (!window.authSession) {
authSession = new Session(
{
clientAuthentication: getClientAuthenticationWithDependencies({})
},
'mySession'
)
// @ts-ignore
window.authSession = authSession
} else {
// @ts-ignore
authSession = window.authSession
}

export default authSession
Loading