GitPrincipal class abstract interface Server Compatibility

An identity authenticated by the host application.

Minimal capability contract: the host's own user type implements it, and no role model is imposed. A null GitPrincipal means an anonymous request; authorization decisions receive the identity, the served repository identifier, and never the repository itself.

This is a capability contract: the host's own user type implements it, and it only grows through a new interface in a major version.

Properties

hashCode → int
The hash code for this object.
no setterinherited
name → String
Name of the identity, for authorization decisions and logs.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited