Commit Graph

78 Commits

Author SHA1 Message Date
9p4
cef4fe5784 feat: allow for HTTPS to be disabled in OpenID discovery (#76) 2022-09-09 10:16:05 -04:00
9p4
facf45058f Merge branch 'main' into custom-username-claim 2022-08-23 19:32:16 -04:00
Sambhav Saggi
672fce8189 fix: prevent null passwords when fallback is set to default provider 2022-08-23 19:22:02 -04:00
Sambhav Saggi
c2f50e1e4c style: run prettier 2022-08-23 18:57:57 -04:00
Sambhav Saggi
a90e0359e4 feat: add config page for preferred username config 2022-08-23 18:26:58 -04:00
Sambhav Saggi
332f62d76e feat: allow configuration of preferred username claim (#47) 2022-08-23 18:18:42 -04:00
9p4
47db5cb504 Merge pull request #71 from fredriklindberg/improve-get-request-base
fix: don't include port in redirect URL for 80 and 443
2022-08-23 18:12:19 -04:00
Fredrik Lindberg
d06f680407 fix: make user creation more robust
Reverse logic of CreateCanonicalLinkAndUserIfNotExist() to first check if the user exists,
then create the canonical link. This allows seamless re-creation of users through SSO after
they have been deleted from Jellyfin but not properly de-linked.
2022-08-18 17:55:41 +02:00
Fredrik Lindberg
976a816d8c fix: don't include port in redirect URL for 80 and 443
Skip port number in redirect URLs during the following conditions
 - The request scheme is http and request port is 80
 - The request scheme is https and request port is 443

This creates redirect urls as https://server/path instead of https://server:443/path
2022-08-18 17:48:37 +02:00
Matthew Strasitoto
510624f142 fix(SSOViews): Resolve server url when served under custom base URL 2022-08-14 13:13:07 +10:00
Matthew Strasitoto
840da75feb remove cdn for material icons, embed svg in stylesheet 2022-08-14 13:13:07 +10:00
Matthew Strasitoto
a4ea12b7f4 document self service in admin config page 2022-08-14 13:13:07 +10:00
Matthew Strasitoto
843873d8d5 fix: improve 403 failure message 2022-08-14 13:13:07 +10:00
Matthew Strasitoto
fc888de045 Finish implementing linking view page 2022-08-14 13:13:07 +10:00
Matthew Strasiotto
d72e47e7a7 Use a local apiClient module 2022-08-14 13:13:07 +10:00
Matthew Strasiotto
a7fb4d4ef0 Code cleanup 2022-08-14 13:13:07 +10:00
Matthew Strasiotto
ebfcadc862 Reduce duplication in adding new views 2022-08-14 13:13:06 +10:00
Matthew Strasiotto
d8d7d616bd Add nav to leave linking page 2022-08-14 13:13:06 +10:00
Matthew Strasiotto
bd60d7e32c Remove scss directives from restyled css 2022-08-14 13:13:06 +10:00
Matthew Strasiotto
7e5738c65f Add css to replace missing css in custom view 2022-08-14 13:13:06 +10:00
Matthew Strasiotto
f810ea7259 add module for api client
Add js apiclient init module
2022-08-14 13:13:06 +10:00
Matthew Strasiotto
cc05b12a23 Add controller for serving views 2022-08-14 13:13:06 +10:00
Matthew Strasiotto
e7d70b8326 lazy provider linking frontend
Use ApiClient.getUrl to get base urls for links

Per
https://github.com/9p4/jellyfin-plugin-sso/pull/34#discussion_r885060442
2022-08-14 13:13:06 +10:00
Matthew Strasiotto
c5e1644d17 implement api for listing and deleting links 2022-08-14 13:13:06 +10:00
Matthew Strasiotto
7ede38d0ab Implement canonical linking 2022-08-14 13:13:06 +10:00
Matthew Strasiotto
5da7e02faf Fix ID Provider incorrectly resetting on login 2022-05-26 19:17:58 +10:00
Sambhav Saggi
07aa74b1d7 3.3.0.0 Release 2022-05-22 12:13:40 -04:00
Matthew Strasiotto
f98509633b Improve UX on config page (#27)
* scope listArgumentsByType to oidc form, select on class

scope listArgumentsByType to correct form

Select arguments by class instead of type

* String arrays now given as newline separated lists

* Implement UI for checklisting folders, and role mapping

start making enabled folders checklist-able

Implement save/load folder lists

change enabledfolders to checklist

refactor: rename saveFolderList -> serializeEnabledFolders, fillFolderList -> populateEnabledFolders

refactor listArgumentsByType

start implementing load provider role mapping

implement role mapping

Move remove button markup, change hierachy

remove logging statements

resolve folder population promise before trying to check folders

* Improve markup, add stylesheet, update help strings

Add stylesheet

update markup + styling of specialized forms

improve markup, assign checkboxes as emby-checkbox es

imrpove markup, remove old comments

run stylesheet through prettier

Update help strings

* Markup changes: Adjust role mapping whitespace

* scope listArgumentsByType to oidc form, select on class

scope listArgumentsByType to correct form

Select arguments by class instead of type

* String arrays now given as newline separated lists

* Implement UI for checklisting folders, and role mapping

start making enabled folders checklist-able

Implement save/load folder lists

change enabledfolders to checklist

refactor: rename saveFolderList -> serializeEnabledFolders, fillFolderList -> populateEnabledFolders

refactor listArgumentsByType

start implementing load provider role mapping

implement role mapping

Move remove button markup, change hierachy

remove logging statements

resolve folder population promise before trying to check folders

* Improve markup, add stylesheet, update help strings

Add stylesheet

update markup + styling of specialized forms

improve markup, assign checkboxes as emby-checkbox es

imrpove markup, remove old comments

run stylesheet through prettier

Update help strings

* Markup changes: Adjust role mapping whitespace

* Proper stylesheet import with nonstandard base URL

* Style

* Ensure rolemappings are using arrays instead of dicts

* Add confirmation for deletion

* Linting

* Update admin page status in README

Co-authored-by: 9p4 <17993169+9p4@users.noreply.github.com>
2022-05-22 12:09:57 -04:00
Matthew Strasiotto
54ef348009 Allow requesting additional scopes in OIDC flows (#24)
* Allow requesting additional scopes in OIDC flows

* Supply OidScopes as an array

* Document `OidScopes` in readme
2022-04-29 16:04:45 -04:00
Matthew Strasiotto
3a8e89db82 Add UI Page for OIDC Configuration (#18)
* Add UI Page for Configuration

For now, this only implements OID configuration.

Add configuration

More frontend additions

implement more frontend for save / load config

Fully implement save + load

implement delete provider

* Cleanup UI page markup, spelling, help text, add more useful titles

* Tidy up help strings

https://github.com/9p4/jellyfin-plugin-sso/pull/18#discussion_r857147540

https://github.com/9p4/jellyfin-plugin-sso/pull/18#discussion_r857147695

https://github.com/9p4/jellyfin-plugin-sso/pull/18#discussion_r857147715

https://github.com/9p4/jellyfin-plugin-sso/pull/18#discussion_r857147806

https://github.com/9p4/jellyfin-plugin-sso/pull/18#discussion_r857147832
2022-04-27 19:53:19 -04:00
9p4
6cb5fc33bf Merge pull request #9 from Pfuenzle/patch-2
Fallback Authentication Provider
2022-04-07 16:16:23 -04:00
Sambhav Saggi
5d28f1ba31 Make CI happy 2022-04-07 16:09:09 -04:00
Pfuenzle
2d14342ad7 Merge branch 'main' into patch-2 2022-04-07 10:20:11 +02:00
username
e8276eae87 Removed errors and warnings 2022-04-07 10:17:41 +02:00
username
2d459b7945 Moved default provider function to authenticate() 2022-04-07 09:43:36 +02:00
username
b8cddb3467 Added comment, removed whitespace etc. 2022-04-07 09:33:55 +02:00
Cody Robibero
875fc62728 Clean up controller
Signed-off-by: Cody Robibero <cody@robibe.ro>
2022-03-21 16:46:52 -06:00
Sambhav Saggi
31cd57829b 3.2.0.0 release 2022-03-13 15:09:47 -04:00
Sambhav Saggi
7f66f44743 Use hashmaps instead of lists for performance 2022-03-13 15:01:26 -04:00
Sambhav Saggi
f748bf7ef7 Add expected roles for debug 2022-02-25 19:51:54 -05:00
Sambhav Saggi
b752f6ffaa Log permissions on permission error 2022-02-25 19:47:06 -05:00
Sambhav Saggi
653341f3dd Merge branch 'main' of https://github.com/9p4/jellyfin-plugin-sso into patch-2 2022-02-21 14:41:01 -05:00
Sambhav Saggi
7d1b3fa97d Add XML docs + no more warnings 2022-02-21 14:36:29 -05:00
Sambhav Saggi
fad64fec7c Clean up logging, add better errors 2022-02-21 11:29:46 -05:00
Sambhav Saggi
7106af19ec Add nested OIDC claim support 2022-02-21 11:16:12 -05:00
Pfuenzle
0eb7cd4f50 Update SSOController.cs 2022-02-20 18:08:31 +01:00
Pfuenzle
06ed040381 Added DefaultProvider to PluginConfiguration 2022-02-20 18:05:05 +01:00
Sambhav Saggi
54586640fb 3.1.0.1 release 2022-02-18 14:31:02 -05:00
Sambhav Saggi
ee26556ddf Fix #7 2022-02-18 14:29:17 -05:00
Sambhav Saggi
f19cd74c19 3.1.0.0 release 2022-02-18 13:43:32 -05:00