And we also need the ability to pass along identifiers that are carried along trough the process and sent to the DEFAULT_REDIRECT_URI
Spec:
Values passed via query strings to first step are carried through the signup process
Redirect uri is resolved via templating
Variables in template look like: {{variable_name}}
username is special and is populated by newly created username and not overridable by first step query strings
Example: With DEFAULT_REDIRECT_URI set to https://example.com/{{username}}?foo={{bar}} and an initial entry point to step1 with ?bar=man and new username baz the redirect url should resolve to: https://example.com/baz?foo=man
Condenser supports autofill in the login form, we should use that when redirecting:
https://steemit.com/login.html#account=billbonds
And we also need the ability to pass along identifiers that are carried along trough the process and sent to the
DEFAULT_REDIRECT_URI
Spec:
{{variable_name}}
username
is special and is populated by newly created username and not overridable by first step query stringsExample: With
DEFAULT_REDIRECT_URI
set tohttps://example.com/{{username}}?foo={{bar}}
and an initial entry point to step1 with?bar=man
and new usernamebaz
the redirect url should resolve to:https://example.com/baz?foo=man
Tests:
DEFAULT_REDIRECT_URI="http://localhost:1234/{{username}}/foo?u={{username}}&id={{id}}
monika
?id=1234
http://localhost:1234/monika/foo?u=monika&id=1234
DEFAULT_REDIRECT_URI="https://example.com
monika
?id=1234
https://example.com
DEFAULT_REDIRECT_URI="https://example.com#{{username}}
monika
?username=hax
https://example.com#monika