Java: Authentication and Authorization with iOS/Andorid/Angular as client
I am looking for building an iOS/Android and Angular app with Java at the backend(REST API). Java will use spring framework. I am looking for the options for User authentication. iOS/Android App will be used by the client and Angular web app will be used my management. Angular web users will have different roles so requirement requires authentication(email and password) as well as authorization. Considering this I was thinking of using Spring Security with a custom UserDetailService. However I guess that will have issues with cookies. I looked into AWS Cognito Identity and Firebase and got more confused. It will be a great help if someone can share there experience with such requirement.
i had created basic login application in angular application by referring the links: http://jasonwatmore.com/post/2015/03/10/angularjs-user-registration-and-login-example-tutorial and i have used cakePHP3 for rest API generation and Token is generated on the the basis of JWT, JSON Web Token (JWT) is a JSON-based open standard used for passing claims between two parties in the context of web application environment. These token are specially designed to be very compact and URL safe. Their usability in the context of web browser single sign-on is also remarkable. JWT claims are useful for passing identities’ verification between service providers and identity providers. you'll find the reference links on internet. for android and IOS you need to learn JSON parsing first. In android, JSON parsing can be done using OKHttpclient/Volley "android hive" is best site to learn jsonParsing and in IOS jsonParsing can be done using AFNetworking. Hope this will help you.
The Ideal Project for you is Spring Security OAuth2. With this you can make your REST API Stateless and no need to worry about Cookies and Sessions.
ArrayIndexOutOfBoundsException error but I think the code is okay
How to remove from a binary search tree?
FileInputStream only reads the first word in a file
Copying in Java using streams - losing data/bytes
Temporarly Cover JFrame with JPanel [duplicate]
Class value is not affected by method
The comprehensive list of the Android permission with corresponding class
How do I get only specific level of message in my log file?
How to Write/Generate CSV file from annotated java class
org.hibernate.TransactionException: Unable to locate JTA UserTransaction
Parse String representation value into Java class type
SecurityContextHolder.getContext().getAuthenticated returns null when url is added to WebSecurity configuration
Getting process ID created by ProcessBuilder [duplicate]
How to move to other Jpanel inside class that extend JPanel
Android : Espresso test FW throwing “No tests found..” exception
Unicode characters are not recognized in java