stormpath/Turnstile

Credentials

nikitabelopotapov opened this issue · 1 comments

How can i implement my own class inheriting Credentials?
Always gets UnsupportedCredentialsError with login/register methods

I tried to inherit from UsernamePassword - that worked, but i had to make some changes in this class.

is there any good way implementing own Credentials?

Yeah, you can implement your own credentials -- it's just that the pre-implemented Realms don't support custom credentials. You'll need to write a Realm that supports you credentials using these instructions:

https://github.com/stormpath/Turnstile#realm