Class GoogleAccountProperty
java.lang.Object
hudson.model.UserProperty
io.jenkins.plugins.googlegroupsoauth.GoogleAccountProperty
- All Implemented Interfaces:
ExtensionPoint,Describable<UserProperty>,ReconfigurableDescribable<UserProperty>
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class GoogleAccountProperty
extends UserProperty
Binds a Jenkins user record to the Google account that signs in with its email, and records
when that account last signed in. Maintained only by
GoogleGroupsSecurityRealm; there
is no UI.
getSubject()is the ID tokensubclaim, Google's stable account id. User ids are emails, and Google can reassign an email to a different account (deleted user, reused address). Without this binding the new account would inherit the old record's API tokens, user-scoped credentials anduser:grants.getLastLoginMillis()bounds how long group authorities recorded at login are trusted for API-token requests (seeGoogleGroupsSecurityRealm.getGroupAuthorityMaxAgeDays()).
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.UserProperty
user -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongreconfigure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject form) No UI: keep the same object when the user saves their profile.Methods inherited from class hudson.model.UserProperty
all, allByCategoryClass, getDescriptor, reconfigure, setUser
-
Constructor Details
-
GoogleAccountProperty
-
-
Method Details
-
getSubject
-
getLastLoginMillis
public long getLastLoginMillis() -
reconfigure
public UserProperty reconfigure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject form) No UI: keep the same object when the user saves their profile.- Specified by:
reconfigurein interfaceReconfigurableDescribable<UserProperty>- Overrides:
reconfigurein classUserProperty
-