-
Notifications
You must be signed in to change notification settings - Fork 2
tp TouchPointWP Auth
Allows users to log in to WordPress with their TouchPoint credentials, and provides other user management functionality.
- Class name: Auth
- Namespace: \tp\TouchPointWP
- This is an abstract class
- This class implements: tp\TouchPointWP\Interfaces\api, tp\TouchPointWP\Interfaces\module
mixed tp\TouchPointWP\Auth::init()
- Visibility: public
- This method is static.
- mixed
bool tp\TouchPointWP\Interfaces\module::load()
Loads the module and initializes the other actions.
- Visibility: public
- This method is static.
- This method is defined by tp\TouchPointWP\Interfaces\module
- bool -
mixed tp\TouchPointWP\Auth::logout()
Clear variables and potentially create a flag for the logout of TouchPoint.
- Visibility: public
- This method is static.
- mixed
mixed tp\TouchPointWP\Auth::footer()
Placeholder for automatic login.
TODO: this
- Visibility: public
- This method is static.
- mixed
mixed tp\TouchPointWP\Auth::printLoginLink()
Renders the link used to log in through TouchPoint.
- Visibility: public
- This method is static.
- mixed
string tp\TouchPointWP\Auth::getLoginUrl()
Generates the URL used to initiate a sign-in with TouchPoint.
- Visibility: public
- This method is static.
- string - The authorization URL used for a TouchPoint login.
mixed tp\TouchPointWP\Auth::redirectLoginFormMaybe()
Determines whether to redirect to the TouchPoint login automatically, and does so if appropriate.
- Visibility: public
- This method is static.
- mixed
mixed tp\TouchPointWP\Auth::redirectLoginCompleteMaybe(string redirect_to, ?string requested_redirect_to, \WP_User|\WP_Error|null user)
Determines whether to redirect to allow the user to continue to the destination page after logging in.
- Visibility: public
- This method is static.
- redirect_to string* requested_redirect_to ?string* user WP_User|WP_Error|null
- mixed
mixed tp\TouchPointWP\Auth::removeAdminBarMaybe()
Prevents the admin bar from being displayed for users who can't edit or change anything.
- Visibility: public
- This method is static.
- mixed
void tp\TouchPointWP\Auth::preventAdminAccessMaybe()
Prevents access to the WordPress admin area for users who can't edit or change anything.
- Visibility: public
- This method is static.
string tp\TouchPointWP\Auth::overwriteProfileUrl(string url)
Replace the default WordPress profile link with a link to the user's TouchPoint profile.
- Visibility: public
- This method is static.
- url string
- string -
string|null tp\TouchPointWP\Auth::getProfileUrl(int|null peopleId)
Assembles the URL to the TouchPoint profile for a given People ID. Assumes current user if no peopleId is given.
- Visibility: public
- This method is static.
- peopleId int|null
- string|null -
bool tp\TouchPointWP\Interfaces\api::api(array uri)
Handle API requests
- Visibility: public
- This method is static.
- This method is defined by tp\TouchPointWP\Interfaces\api
- uri array - The request URI already parsed by parse_url()
- bool - False if endpoint is not found. Should print the result.
\WP_Error|\WP_User|null tp\TouchPointWP\Auth::authenticate(\WP_Error|\WP_User|null user, mixed username, mixed password)
Authenticates the user with TouchPoint
- Visibility: public
- This method is static.
- user WP_Error|WP_User|null - A WP_User, if the user has already authenticated.
- username mixed - The username provided during form-based sign in. Not used.
- password mixed - The password provided during form-based sign in. Not used.
- \WP_Error|\WP_User|null - The authenticated WP_User, or a WP_Error if there were errors. The WP API expects WP_Error
Documentation generated November 19, 2025 1:15am.
- Simple RSVP
- People Lists
- Involvements
- Outreach Partners
- SQL & Python Reports
- Events Calendar from Meetings (Beta)
- Events Calendar Plugin Integration (Deprecated)
- tp
- tp\TouchPointWP
- Api
- Auth
- tp\TouchPointWP\Blocks
- CalendarGrid
- EventsCalendar
- ExtraValueHandler
- Geo
- tp\TouchPointWP\Interfaces
- Involvement
- Involvement_PostTypeSettings
- InvolvementMembership
- Location
- Meeting
- MeetingArray
- Partner
- Person
- PostTypeCapable
- RegistrationType
- Report
- Rsvp
- Settings
- Stats
- StatusWidget
- Taxonomies
- TouchPointWP
- TouchPointWP_AdminAPI
- TouchPointWP_Exception
- TouchPointWP_WPError
- Utilities
- tp\TouchPointWP