These are chat archives for spring-guides/tut-spring-security-and-angular-js

6th
Jul 2015
Rahul-Surabhi
@Rahul-Surabhi
Jul 06 2015 05:17
@dsyer My requested URL is http://localhost:8081/oath/authorize
In Headers I am adding this cookie which generated by normal flow
Cookie : JSESSIONID=D2382EDA8D7D849A75D981B27295551F
In the Form data I am sending Credentials
Name : XXXXX password:XXXXX
This is how i am requesting the entire URL
Karthik
@karthikpamidimarri
Jul 06 2015 07:13
@dsyer Thanks dsyer I got the clarity why the response is not coming because it's implemented Implicit Grant Type
and we want to develop an application Which support billions of users request so which Grant Type We have to use and how to setup the flow for Authorization Server and Multiple resource server and it should support for Gaming and mobile application
Karthik
@karthikpamidimarri
Jul 06 2015 13:44
@dsyer When I requested to this link "http://localhost:8081/oauth/token" with Form data and Header in Postman
I am getting the following response is
{"error":"unsupported_grant_type","error_description":"Unsupported grant type: password"}
For this Client I have grant_type password and refresh_token there in the database but still I am getting the above response why I didn't Understood
Dave Syer
@dsyer
Jul 06 2015 14:04
I guess your auth server doesn't support password grants
Karthik
@karthikpamidimarri
Jul 06 2015 14:09
@dsyer How to make it to support and I am using JdbcTokenStore() to check this process
Instead of InMemory Authentication
This one I followed to fetch the accesstoken
Dave Syer
@dsyer
Jul 06 2015 14:32
You haven't given it an authentication manager
So it can't do password grants
Karthik
@karthikpamidimarri
Jul 06 2015 14:42
This message was deleted
This message was deleted
Karthik
@karthikpamidimarri
Jul 06 2015 15:07
After adding the AuthenticationManager to the AuthorizationServerEndPoints The response coming as {"error":"invalid_grant","error_description":"Bad credentials"} Through UI I am able to login with same Credentials
Dave Syer
@dsyer
Jul 06 2015 16:08
Is your client authenticating?
You need to send Basic auth with the client credentials
Karthik
@karthikpamidimarri
Jul 06 2015 16:09
Yes I am sending Basic auth with credentials
Dave Syer
@dsyer
Jul 06 2015 16:14
Show me your request
Karthik
@karthikpamidimarri
Jul 06 2015 16:46
How do I show
Dave Syer
@dsyer
Jul 06 2015 16:51
Copy paste? I don't know. It depends how you send it. Use curl and then it's easy to see.
Karthik
@karthikpamidimarri
Jul 06 2015 16:52
I sent through Post man I am checking how to share the screen shot
Client Reqeust -->http://localhost:8081/oauth/token
Headeres -->Authorization : Basic Y2xpZW50YXBwOjEyMzQ1Ng==
Accept : application/json
Through Form data : name : user Password : user , grant_type = password ,scope : read write,client_secret :123456,client_id:clientapp
This is how I am passing through the POST Man
Dave Syer
@dsyer
Jul 06 2015 17:02
Can't you do it with curl?
I don't understand that format
I can't see the form parameters properly
(should have username=...&password=...)
Is it possible you didn't send username and password?