Giter VIP home page Giter VIP logo

dotnet-oauth-example's Introduction

dotnet-oauth-example

A simple example to show how to perform OAuth authentication with Google APIs in C#/.Net.

Instructions

  • Install .Net if you haven't already.
  • Download this repo onto your workstation.
  • Login to Google and create a Cloud Platform account and project, if you don't already have one.
  • Enable the Google Books API used in this example.
  • Go to the Google APIs Console.
  • Click Create Credentials and choose OAuth Client ID.
  • Choose "Other", enter a memorable name, and click Create.
  • Click OK - you don't need these details.
  • Back on the Console screen, click the download icon on the far right of the screen next to the client ID you just created. This downloads a JSON file to your workstation.
  • Move it into the folder which contains this README file.
  • At the command prompt in the same folder, type dotnet run to run the program.
  • Follow the instructions on the screen, which will direct you to visit a URL, give your consent for this app to use your Google Books data, and then send a message to this app with authentication information.
  • You should then see a list of your bookshelves in Google Books printed in console output.

Note that this very simple example runs at the terminal. OAuth handles web and mobile applications too, but the code is slightly different.

How does it work?

  • Find out more about OAuth here.
  • Instructions on how to use the Google OAuth client in .Net are here.
  • Documentation for the Google Books API is here.

dotnet-oauth-example's People

Contributors

nof20 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.