Skip to content

[Branch-2.7] Fixes function api can not use authdata to check superuser - #11418

Merged
zymap merged 1 commit into
apache:branch-2.7from
zymap:fix-npe-branch-2.7
Jul 22, 2021
Merged

[Branch-2.7] Fixes function api can not use authdata to check superuser#11418
zymap merged 1 commit into
apache:branch-2.7from
zymap:fix-npe-branch-2.7

Conversation

@zymap

@zymap zymap commented Jul 22, 2021

Copy link
Copy Markdown
Member

Motivation

Port the fix #10364 to branch 2.7.

Sometimes, the superuser is not only needed the client
role but also needs some data in the authentication data
to check whether the role is the superuser.

The changed interface is introduced from #8560,
it's safe to change it since there is no release for that.'

Modifications

Change the isSuperUser method to accept the authenticationData
and pass it to the authentication provider. So authenticatoin prodiver
can get the data saved in the authenticationDataSource.

Verifying this change

  • Make sure that the change passes the CI checks.

---

*Motivation*

Port the fix apache#10364 to the branch 2.7.

Sometimes, the superuser is not only needed the client
role but also needs some data in the authentication data
to check whether the role is the superuser.

The changed interface is introduced from apache#8560,
it's safe to change it since there is no release for that.'

*Modifications*

Change the isSuperUser method to accept the authenticationData
and pass it to the authentication provider. So authenticatoin prodiver
can get the data saved in the authenticationDataSource.
@zymap
zymap merged commit c73449f into apache:branch-2.7 Jul 22, 2021
@codelipenghui codelipenghui added the cherry-picked/branch-2.7 Archived: 2.7 is end of life label Jul 23, 2021
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