Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update example to throw unauthorized exception on invalid credentials
Server expects that credentials provider will always gives an
Cretaintails object. Therefore throw unauthorized exception if no
matching credeaintils were found.
  • Loading branch information
sadika9 committed May 5, 2016
commit 8bc15f7c81d32b25dbc0cebca3eb1940cedf8b36
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ $credentialsProvider = function ($id) {
'12345' // identifier, default: null
);
}

throw new UnauthorizedException("Unknown credentials");
};

// A complete example
Expand Down