Coder Social home page Coder Social logo

cybernhl / google-oauth-mock Goto Github PK

View Code? Open in Web Editor NEW

This project forked from newthingsco/google-oauth-mock

0.0 0.0 0.0 26 KB

Simple REST API for simulating/mocking Google OAuth service.

Makefile 40.84% JavaScript 52.52% Dockerfile 6.64%

google-oauth-mock's Introduction

google-oauth-mock

Simple REST API for simulating/mocking Google OAuth service.

Published in Docker Hub

Make file targets

make run                starts mock server (optional AUTHORIZED_REDIRECT_URL)
make docker-build       builds Docker image out of mock server
make docker-run         starts mock server as a Docker container (optional AUTHORIZED_REDIRECT_URL) 
make docker-stop        stops mock server Docker container
make docker-tag         creates Docker image tag based on package.json version
make docker-push        pushes Docker image into Docker Hub
make docker-publish     builds, tags and pushes Docker image (you'll be prompted for Docker Hub credentials)

NOTE! To modify the default authorized redirect URI that gets called when you make a request to /mock-auth endpoint, use the AUTHORIZED_REDIRECT_URL argument like

make AUTHORIZED_REDIRECT_URL=http://my.callback.uri run

Exposed endpoints

GET  /mock-auth  - Simulates https://accounts.google.com/o/oauth2/auth
POST /mock-token - Simulates https://accounts.google.com/o/oauth2/token
GET  /mock-user  - Simulates https://www.googleapis.com/oauth2/v3/userinfo

google-oauth-mock's People

Contributors

klindklind avatar mikefynes-newthings avatar tuomastanner 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.