-
Notifications
You must be signed in to change notification settings - Fork 924
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add password grant utility and fix client id and grant type (#602)
* feat(oauth2): add password grant support * fix(oauth2 scheme): pass `opts` to `passwordLogin` * feat(local and refresh): properly support for client id and grant type * demo: remove client id and grant type * test: remove client id and grant type * chore(deps): add dependency requrl and remove is-https * refactor(oauth2 scheme): use requrl in `_logoutRedirectURI` method * feat(utilities): add utility `urlJoin` * refactor(oauth2 scheme): use utility `urlJoin` in `_logoutRedirectURI` method * feat(provier utils): add utility `initializePasswordGrantFlow` This remove password grant from `addAuthorize`. * refactor(laravel passport): use `initializePasswordGrantFlow` and add url error * fix(oauth2 scheme): use requrl and urlJoin in `_redirectURI` method * revert: "fix(oauth2 scheme): pass `opts` to `passwordLogin`" This reverts commit 51c7c99 * revert: "feat(oauth2): add password grant support" This reverts commit ffc3a22 * merge with dev * fix(provider utils): import requrl * chore(deps): remove dependency is-https We are using requrl * fix(laravel passport): relative url for endpoints (#633) Uses `assignAbsoluteEndpoints` utility * fix(laravel passport): update `_name` and `_scheme` to remove `_` * fix(provider utils): check if endpoint is defined in `assignAbsoluteEndpoints` * fix(laravel passport): `assignAbsoluteEndpoints` should be used right after `assingDefaults` * fix(laravel passport): fix export * fix(provider utils): check if endpoint url is defined in `assignAbsoluteEndpoints` * fix(provider utils): update `_name` to remove `_` * chore(deps): update dependency requrl to v2.0.1 * feat(utils): add utility `cleanObj` * fix(refresh scheme): fix data of refresh endpoint * demo: add laravel passport demo * fix(laravel passport): set default logout endpoint to `false` * demo(laravel passport): remove unnecessary logout endpoint Co-authored-by: pooya parsa <pooya@pi0.ir>
- Loading branch information
1 parent
fcde62e
commit f47885c
Showing
13 changed files
with
281 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.