Cryptolens / cryptolens-dotnet

Client API to access the functionality of Cryptolens Web API
https://help.cryptolens.io
BSD 3-Clause "New" or "Revised" License
28 stars 12 forks source link

AuthMethods.CreateAuthRequest not working properly #80

Open Kubos-cz opened 1 year ago

Kubos-cz commented 1 year ago

Hi,

AuthMethods.CreateAuthRequest is trying to access this URL https://api.cryptolens.io/User/AuthorizeApp to generate a request however there is nothing on the page

Then when I call https://api.cryptolens.io/api/auth/GetChallenge I get the error "The authorization request could not be found."

artemlos commented 1 year ago

@Kubos-cz thanks for letting us know!

It appears to be an error in first url; it should call https://**app**.cryptolens.io/User/AuthorizeApp instead of https://**api**.cryptolens.io/User/AuthorizeApp.

We have added this to our backlog and will release a fix to it.

Thanks again!

artemlos commented 1 year ago

@Kubos-cz

We have an alternative way to authenticate users, which goes directly to the API instead of asking the customer to authenticate with their account. I will include a link with more information below:

https://help.cryptolens.io/web-interface/customer-secret

I believe this could be a useful work around while the previous issue is fixed.

Kubos-cz commented 1 year ago

Thanks for your reply @artemlos,

Using cutomer secret might be valid approach however the user would need to enter it themselves atleast once into the client

Do you offer more traditional methods ie. oAuth where I could exchange username and password for usertoken and then use the /user/ or /me/ enpoints etc?