문제

I would like to use Persona as auth method for our website based on a whose functionalities are based on a REST API. In a traditional method we send the informations about user at each request - username and password - with the connection secured with SSL.

We would achieve the same, but using Mozilla Persona to allow people to the initial login instead, how can this be achieved?

도움이 되었습니까?

해결책

What I would do is show a Web UI the first time (authenticating with Persona) and then exchange a secret token between the server and the client. You then include the token along with each request to the REST API.

That way you'd be using Persona for the initial authentication, then you'd be using a token-based system for authorization.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top