043c85728a
One of use cases OAuth plugin based authentication scheme is aiming to support is switch from deprecated OpenID provider to OAuth scheme offered by the same povider. In this specific case the database is already pre-populated with OpenID accounts. After switching the auth scheme to OAuth all existing accounts must be linked to the new OAuth identity. To support linking new OAuth identity to existing accounts, user info extension point is extended with claimed identity attribute. When passed, the account for this identity is looked up and when found new OAuth identity is linked to it. Change-Id: Ia6489762dd370bfbbaa16a7418cd3106d2d1112a
27 lines
577 B
Python
27 lines
577 B
Python
SRCS = glob(
|
|
['src/main/java/**/*.java'],
|
|
)
|
|
RESOURCES = glob(['src/main/resources/**/*'])
|
|
|
|
java_library(
|
|
name = 'oauth',
|
|
srcs = SRCS,
|
|
resources = RESOURCES,
|
|
deps = [
|
|
'//gerrit-common:annotations',
|
|
'//gerrit-extension-api:api',
|
|
'//gerrit-httpd:httpd',
|
|
'//gerrit-reviewdb:server',
|
|
'//gerrit-server:server',
|
|
'//lib:gson',
|
|
'//lib:guava',
|
|
'//lib:gwtorm',
|
|
'//lib/commons:codec',
|
|
'//lib/guice:guice',
|
|
'//lib/guice:guice-servlet',
|
|
'//lib/log:api',
|
|
],
|
|
provided_deps = ['//lib:servlet-api-3_1'],
|
|
visibility = ['PUBLIC'],
|
|
)
|