** Description changed:

  If the user cancels the registration process before validating the
  email, the registration in the SSO server was completed but the
  preferred email was not set, so our SSO server can't process the ping
  request.
  
  We need to check if the user has a validated email address before
  logging him in.
+ 
+ TEST CASE:
+ 
+ To test, run in this branch the following:
+ 
+ * killall ubuntu-sso-login; DEBUG=True PYTHONPATH=. ./bin/ubuntu-sso-
+ login
+ 
+ * In d-feet, execute the method 'register' in the com.ubuntu.sso bus name, 
object path /com/ubuntu/sso/credentials, interface name CredentialsManagement.
+ Parameters must be something like:
+ 
+ 'Ubuntu Two', {'ping_url': 'https://edge.one.ubuntu.com/oauth/sso-
+ finished-so-get-tokens/'}
+ 
+ * Once you get the SSO GUI, register a non existent user and do not
+ enter the validation code. Just close the window when the validation
+ code is requested.
+ 
+ * Open the SSO GUI again using d-feet and try to register the same user,
+ you'll get a "Email already registered" error.
+ 
+ * Click on "I already have an account..." to login, and try to login
+ with the former user and pass.
+ 
+ Behavior expected:
+ 
+  - The login process doesn't succeed but instead the verification screen
+ appears.

** Description changed:

  If the user cancels the registration process before validating the
  email, the registration in the SSO server was completed but the
  preferred email was not set, so our SSO server can't process the ping
  request.
  
  We need to check if the user has a validated email address before
  logging him in.
  
  TEST CASE:
  
  To test, run in this branch the following:
  
  * killall ubuntu-sso-login; DEBUG=True PYTHONPATH=. ./bin/ubuntu-sso-
  login
  
- * In d-feet, execute the method 'register' in the com.ubuntu.sso bus name, 
object path /com/ubuntu/sso/credentials, interface name CredentialsManagement.
+ * In d-feet, execute the method 'register' in the com.ubuntu.sso bus name, 
object path /credentials, interface name ApplicationCredentials.
  Parameters must be something like:
  
- 'Ubuntu Two', {'ping_url': 'https://edge.one.ubuntu.com/oauth/sso-
- finished-so-get-tokens/'}
+ 'Ubuntu Two', '', '', 0
  
  * Once you get the SSO GUI, register a non existent user and do not
  enter the validation code. Just close the window when the validation
  code is requested.
  
  * Open the SSO GUI again using d-feet and try to register the same user,
  you'll get a "Email already registered" error.
  
  * Click on "I already have an account..." to login, and try to login
  with the former user and pass.
  
  Behavior expected:
  
-  - The login process doesn't succeed but instead the verification screen
+  - The login process doesn't succeed but instead the verification screen
  appears.

** Description changed:

  If the user cancels the registration process before validating the
  email, the registration in the SSO server was completed but the
  preferred email was not set, so our SSO server can't process the ping
  request.
  
  We need to check if the user has a validated email address before
  logging him in.
  
  TEST CASE:
  
  To test, run in this branch the following:
  
  * killall ubuntu-sso-login; DEBUG=True PYTHONPATH=. ./bin/ubuntu-sso-
  login
  
  * In d-feet, execute the method 'register' in the com.ubuntu.sso bus name, 
object path /credentials, interface name ApplicationCredentials.
  Parameters must be something like:
  
  'Ubuntu Two', '', '', 0
  
  * Once you get the SSO GUI, register a non existent user and do not
  enter the validation code. Just close the window when the validation
  code is requested.
  
  * Open the SSO GUI again using d-feet and try to register the same user,
  you'll get a "Email already registered" error.
  
  * Click on "I already have an account..." to login, and try to login
  with the former user and pass.
  
  Behavior expected:
  
-  - The login process doesn't succeed but instead the verification screen
- appears.
+  - The login process doesn't succeed but instead the email verification
+ screen appears.

-- 
User may register without validating the email address
https://bugs.launchpad.net/bugs/667899
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to