Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I've been struggling a lot lately to find decent solution which has authentication mechanism for server and client API's.

I put alot of effort trying to find working(!) code samples , but couldn't find any. The code from DotNetOpenAuth doesn't work for me - im using vs 2010 .net 4 webform

Anyway , I can't seems to find a solution which covers an overall API for all parameters/providers and it seems that I have to build it from scratch.

For example — ( google) : Every solution I've found provides only the info that the basic url is :

https://accounts.google.com/o/oauth2/auth

enter image description here

Also , i don't know if this usage is going to work since I've heard that the service is deprecated :

enter image description here

But this will never work alone , since I have to append URL parameters :

https://accounts.google.com/o/oauth2/auth?
 scope=email%20profile&
 state=%2Fprofile&
 redirect_uri=https%3A%2F%2Foauth2-login-demo.appspot.com%2Foauthcallback&
 response_type=token&
 client_id=812741506391.apps.googleusercontent.com

Why do I have to build/encode it by myself ?

Now , I don't have a problem with the parameters filling , I have a problem with the fact that I can't find full API for both client (js) and server side (.net).

It seems that I have to build the url + encoded values by myself

Question

Is there any solution which will take as param my plain values , and will provide final valid URL ?

(both for C# and js/jq and for many providers )

share|improve this question
    
Have you solved this issue ? Because I have same problem and I have just started bounty. –  Jeeten Parmar Jun 7 at 10:43
    
@JeetenParmar no my friend , still waiting for an answer . –  Royi Namir Jun 7 at 10:43
    
Keep checking my post : stackoverflow.com/questions/24057939/… if someone gives perfect reply then it will help both of us. –  Jeeten Parmar Jun 7 at 10:46
    
hey, I have solved this issue. Check my post. And dont forget to do up vote on my post and on answer. ;) –  Jeeten Parmar Jun 8 at 10:02
    
@JeetenParmar ofcourse. thank you very much..... –  Royi Namir Jun 8 at 10:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.