Skip to content

feat: add shiro and jwt. - #944

Merged
yu199195 merged 1 commit into
apache:permissionfrom
HessTina-YuI:permission
Jan 7, 2021
Merged

yu199195 merged 1 commit into
apache:permissionfrom
HessTina-YuI:permission

Conversation

@HessTina-YuI

@HessTina-YuI HessTina-YuI commented Jan 6, 2021 •

Copy link
Copy Markdown
Member

// Describe your PR here; eg. Fixes #issueNo

Make sure that:

  • You have read the contribution guidelines.
  • You submit test cases (unit or integration tests) that back your changes.
  • Your local test passed mvn clean install -Dmaven.javadoc.skip=true.

@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #944 (90d430a) into master (5b4cb5a) will decrease coverage by 0.28%.
The diff coverage is 29.78%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #944      +/-   ##
============================================
- Coverage     76.66%   76.38%   -0.29%     
- Complexity     2020     2051      +31     
============================================
  Files           329      336       +7     
  Lines          7471     7601     +130     
  Branches        828      838      +10     
============================================
+ Hits           5728     5806      +78     
- Misses         1311     1353      +42     
- Partials        432      442      +10     
Impacted Files Coverage Δ Complexity Δ
.../dromara/soul/admin/shiro/bean/StatelessToken.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...in/java/org/dromara/soul/admin/utils/JwtUtils.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...ara/soul/admin/shiro/bean/StatelessAuthFilter.java 6.66% <6.66%> (ø) 2.00 <2.00> (?)
...rg/dromara/soul/admin/shiro/config/ShiroRealm.java 7.69% <7.69%> (ø) 1.00 <1.00> (?)
...ra/soul/admin/shiro/config/ShiroConfiguration.java 100.00% <100.00%> (ø) 8.00 <8.00> (?)
...plugin/divide/balance/spi/AbstractLoadBalance.java 40.00% <0.00%> (-26.67%) 6.00% <0.00%> (+3.00%) ⬇️
...omara/soul/sync/data/http/HttpSyncDataService.java 63.72% <0.00%> (-8.83%) 12.00% <0.00%> (ø%)
...soul/plugin/divide/cache/UpstreamCacheManager.java 34.88% <0.00%> (-4.59%) 6.00% <0.00%> (ø%)
.../soul/admin/service/impl/UpstreamCheckService.java 69.35% <0.00%> (-3.86%) 13.00% <0.00%> (ø%)
...cs/prometheus/PrometheusMetricsTrackerManager.java 83.33% <0.00%> (-3.63%) 7.00% <0.00%> (ø%)
... and 10 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5b4cb5a...90d430a. Read the comment docs.

@HessTina-YuI
HessTina-YuI changed the base branch from master to permission January 6, 2021 17:45
@yu199195
yu199195 merged commit a8e3d53 into apache:permission Jan 7, 2021
yu199195 added a commit that referenced this pull request Jan 18, 2021
* feat: add shiro and jwt. (#944)

* Permission (#946)

* feat: add shiro and jwt.

* modify: change login response object

* add: global deal shiro's exception.

* role have done

* permission compeleted for server

* permission compeleted for server

* modify lambada

* add apache license header

* Supports Shiro privilege blocking and whitelist configuration and JWT login authentication

* feat: add shiro and jwt.

* modify: change login response object

* add: global deal shiro's exception.

* add: shiro's white list remove in file of yaml

* modify: application-local.yml

* add: shiro's white list remove in file of yaml

* modify some feature

* Deleting the admin user is not allowed

* add delete role by user id

* update role permission delete batch resource by roleid

* add role sql

* Integrate front-end coordination

* modify: allow "option" request (#3)

* feat: add shiro and jwt.

* modify: change login response object

* add: global deal shiro's exception.

* add: shiro's white list remove in file of yaml

* modify: application-local.yml

* add: shiro's white list remove in file of yaml

* modify: allow "option" request

* Modify user roles without distinguishing admin users

* add permission table sql

* checkstyle

* checkstyle

* Fix (#4) not init SQL

* Compatible with H2 syntax

* modify: shiro permission modify (#5)

* feat: add shiro and jwt.

* modify: change login response object

* add: global deal shiro's exception.

* add: shiro's white list remove in file of yaml

* modify: application-local.yml

* add: shiro's white list remove in file of yaml

* modify: allow "option" request

* modify: shiro permission modify

* add data sync by http whitelist

* user login add null judge

* permission compeleted

* fix test error

* fix login test error (#6)

* feat: add shiro and jwt.

* modify: change login response object

* add: global deal shiro's exception.

* add: shiro's white list remove in file of yaml

* modify: application-local.yml

* add: shiro's white list remove in file of yaml

* modify: allow "option" request

* modify: shiro permission modify

* fix: DashboardUserServiceTest.java to adapt new DashboardUserService.java

Co-authored-by: George <[email protected]>

* permission compeleted

Co-authored-by: YuI <[email protected]>
Co-authored-by: dengliming <[email protected]>
Co-authored-by: xiaoyu <[email protected]>
nuo-promise added a commit that referenced this pull request Jan 18, 2021
* feat: add shiro and jwt. (#944)

* Permission (#946)

* feat: add shiro and jwt.

* modify: change login response object

* add: global deal shiro's exception.

* role have done

* permission compeleted for server

* permission compeleted for server

* modify lambada

* add apache license header

* Supports Shiro privilege blocking and whitelist configuration and JWT login authentication

* feat: add shiro and jwt.

* modify: change login response object

* add: global deal shiro's exception.

* add: shiro's white list remove in file of yaml

* modify: application-local.yml

* add: shiro's white list remove in file of yaml

* modify some feature

* Deleting the admin user is not allowed

* add delete role by user id

* update role permission delete batch resource by roleid

* add role sql

* Integrate front-end coordination

* modify: allow "option" request (#3)

* feat: add shiro and jwt.

* modify: change login response object

* add: global deal shiro's exception.

* add: shiro's white list remove in file of yaml

* modify: application-local.yml

* add: shiro's white list remove in file of yaml

* modify: allow "option" request

* Modify user roles without distinguishing admin users

* add permission table sql

* checkstyle

* checkstyle

* Fix (#4) not init SQL

* Compatible with H2 syntax

* modify: shiro permission modify (#5)

* feat: add shiro and jwt.

* modify: change login response object

* add: global deal shiro's exception.

* add: shiro's white list remove in file of yaml

* modify: application-local.yml

* add: shiro's white list remove in file of yaml

* modify: allow "option" request

* modify: shiro permission modify

* add data sync by http whitelist

* user login add null judge

* permission compeleted

* fix test error

* fix login test error (#6)

* feat: add shiro and jwt.

* modify: change login response object

* add: global deal shiro's exception.

* add: shiro's white list remove in file of yaml

* modify: application-local.yml

* add: shiro's white list remove in file of yaml

* modify: allow "option" request

* modify: shiro permission modify

* fix: DashboardUserServiceTest.java to adapt new DashboardUserService.java

Co-authored-by: George <[email protected]>

* permission compeleted

* add database init enable,admin role bind use sql

* optimize permission

* optimize permission

* optimize permission

* optimize permission

Co-authored-by: YuI <[email protected]>
Co-authored-by: dengliming <[email protected]>
Co-authored-by: xiaoyu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants