This repository was archived by the owner on Dec 14, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -639,6 +639,21 @@ $forgotLink = $application->createIdSiteUrl(['path'=>'/#/forgot','callbackUri'=>
639639header('Location:'.$forgotLink); //or any other form of redirect to the $loginLink you want to use.
640640```
641641
642+ ##### Using SP_Token for password reset from workflow in ID Site
643+
644+ We allow you to use the Workflow for password reset outside of the ID Site system, but enable you to use the password
645+ reset screens of the ID Site to do the password reset. To allow for this, you need to pass in the ` sp_token ` parameter
646+ that was provided in the email of the password reset.
647+ ``` php
648+ $application = \Stormpath\Resource\Application::get('{APPLICATION_ID}');
649+ $location = $application->createIdSiteUrl([
650+ 'path'=>'/#/reset',
651+ 'sp_token'=>'{{SP_TOKEN}}',
652+ 'callbackUri'=>'{{CALLBACK_URI}}'
653+ ]);
654+ header('Location:'.$forgotLink); //or any other form of redirect to the $loginLink you want to use.
655+ ```
656+
642657Again, with all these methods, You will want your application to link to an internal page where the JWT is created at
643658that time. Without doing this, a user will only have 60 seconds to click on the link before the JWT expires.
644659
You can’t perform that action at this time.
0 commit comments