Skip to content

Commit

Permalink
Merge pull request #914 from pantheon-systems/update/documentation
Browse files Browse the repository at this point in the history
Updated documentation and doc-making script
  • Loading branch information
TeslaDethray committed Feb 12, 2016
2 parents f871ca8 + 6629abd commit dd83594
Show file tree
Hide file tree
Showing 11 changed files with 571 additions and 21 deletions.
98 changes: 98 additions & 0 deletions docs/Helpers/AuthHelper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# Terminus\Helpers\AuthHelper

### __construct
##### Description:
Object constructor

##### Parameters:
[array] $options Options and dependencies for this helper

##### Return:
[AuthHelper]

---

### ensureLogin
##### Description:
Ensures the user is logged in or errs.

##### Return:
[bool] Always true

##### Throws:
TerminusException

---

### getMachineTokenCreationUrl
##### Description:
Generates the URL string for where to create a machine token

##### Return:
[string]

---

### getOnlySavedToken
##### Description:
Gets the only saved token or returns false

##### Return:
[bool|string]

---

### loggedIn
##### Description:
Checks to see if the current user is logged in

##### Return:
[bool] True if the user is logged in

---

### logInViaMachineToken
##### Description:
Execute the login based on a machine token

##### Parameters:
[string[]] $args Elements as follow:
-string token Machine token to initiate login with
-string email Email address to locate token with

##### Return:
[bool] True if login succeeded

##### Throws:
TerminusException

---

### logInViaUsernameAndPassword
##### Description:
Execute the login via email/password

##### Parameters:
[string] $email Email address associated with a Pantheon account
[string] $password Password for the account

##### Return:
[bool] True if login succeeded

##### Throws:
TerminusException

---

### tokenExistsForEmail
##### Description:
Checks to see whether the email has been set with a machine token

##### Parameters:
[string] $email Email address to check for

##### Return:
[bool]

---

Loading

0 comments on commit dd83594

Please sign in to comment.