on 2018 Sep 18 3:29 PM
I am trying to configure login webservices forAndroid/iOS in Hybris 6.7. Can you please share the steps for configuration using oAuth token.?
Request clarification before answering.
1)create a custom mobile API - /device/oauth/token. 2)Make sure you are passing "customerid","password","deviceType" using DTO . 3) Validate the userdetails 4) then Configuration config = getConfigurationService().getConfiguration(); UsernamePasswordAuthenticationToken authRequest= new UsernamePasswordAuthenticationToken(config.getString("trusted.client_id", "trusted_client"), config.getString("trusted.client_password", "secret"));
Authentication authResult = this.getClientAuthenticationManager().authenticate(authRequest);
5)Validate customer username and password and generate the token
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.