Android App to test API requests against the GitHub API.

Related tags

App github-tester
Overview

Reproducing an issue with GitHub's IP allowlist feature

GitHub provides a feature for Enterprise orgs to define an IP allowlist. Requests to the GitHub org's API will be blocked if the client IP address is not in that list.

Working on the GitHub for Jira app, we have identified some issues with this feature. In this repo, I want to document these issues and how to reproduce them.

Steps to reproduce

Create a tunnel

For the OAuth dance between GitHub and the test app to work, you need to expose port 8080 to the internet:

You can use ngrok for this (setup instructions).

Once ngrok is setup, run ngrok http 8080

Create a GitHub app

Go to https://github.com/settings/apps and create a new GitHub app:

  • as callback URL, enter the URL that ngrok gives you, plus the suffix /callback.
  • disable "expire user authorization tokens"
  • disable the "Active" checkbox under "webhooks"
  • give "read-only" access for the "Metadata" permission
  • after hitting "Create", on the following page click the button "Generate a private key" and save the .pem file for later.
  • from the "General" tab of your app, copy the "App ID" and "Client ID" for later use
  • in the "General" tab of your app, generate a client secret and copy it for later use

Install the GitHub app into an org

  • in the settings of your GitHub app, click "Install App"
  • choose one of your orgs and click on "Install"
  • follow the prompts

Run the test app

  • you need Java 17 or higher installed
  • clone this repo
  • copy the private key you downloaded earlier into the file private-key.pem in the main folder of the repo
  • copy the "App ID", "Client ID", and "Client Secret" into the respective fields in the file src/main/resources/application.yml
  • run ./gradlew bootrun in the main directory of this repo to start the app
  • open your browser at https://localhost:8080
  • click the "start test" link
You might also like...
Implementation of the application using the latest Android Tech Stack and the GitHub REST API.
Implementation of the application using the latest Android Tech Stack and the GitHub REST API.

GitHub Viewer Implementation of the application using the latest Android Tech Stack and the GitHub REST API. !-- Github login. You can change the use

App de test para ingreso a Mercado Libre
App de test para ingreso a Mercado Libre

Proyecto Mercado Libre Proyecto de prueba para ingreso en Mercado Libre Tabla de contenidos Acerca del projecto Construido con Primeros pasos Pre-requ

A Test App Featuring MVVM,Hilt,Navigation Component,Retrofit

CodingTest A Test App Featuring MVVM,Hilt,Navigation Component,Retrofit #Project Summary This application loads the last 10 commits from the github's

A simple app to test your device input sample rate.
A simple app to test your device input sample rate.

Android touch sample rate test tool This tool can help you check the touch sample rate of the Android device. Supported input method: Touch Mouse Styl

Android Chinese TTS Engine Base On Tensorflow TTS , use for TfLite Models Test。安卓离线中文TTS引擎,在TensorflowTTS基础上开发,用于TfLite模型测试。
Android Chinese TTS Engine Base On Tensorflow TTS , use for TfLite Models Test。安卓离线中文TTS引擎,在TensorflowTTS基础上开发,用于TfLite模型测试。

Chinese TTS TF Lite 介绍 使用Kotlin + JetPack Compose + Tensorflow Lite开发的TTS引擎,可以完全离线使用。 可选两种模型:FastSpeech和Tacotron,这两种模型均来自TensorFlowTTS 文字转拼音方法来自:Tenso

Test android startup time fluctsdk

Test android startup time fluctsdk

Mobile Application Developer Technical Test
Mobile Application Developer Technical Test

kotlin_incident_app Mobile Application Developer Technical Test Screenshots Notes You may have to wait a little bit when you click on a button as they

androidx window manager sample taken from the original source and modified for easy deploy and test

androidx-window-samples This project contains the WindowManager samples located in the androidx WM project location The goal of this project is to pro

Owner
Tom Hombergs
Software Developer and Open Source Enthusiast at @atlassian / ex-@adessoAG
Tom Hombergs
KotlinSample - Template project for building a GTK3 Kotlin/Native app against the elementary Flatpak runtime

GTK3 Kotlin/Native Sample This is a working example of how to write and build a

David Hewitt 10 Dec 5, 2022
Github-Api-Pagination-Example - Pagination 3 Example using Github Api

Github-Api-Pagination Pagination 3 Example using Github Api Tech Stack 100% Kotl

Anggoro Beno Lukito 2 Aug 22, 2022
GithubUsersGalleryApp - Github users app consumed Github API

GithubUsersApp ✨ Github users app consumed Github API ✨ Architecture Using Moder

Ali Azaz Alam 1 Feb 20, 2022
Clean Architecture Kotlin Multiplatform Mobile (KMM) with Android Instrument Test and Unit Test

The-Movies: Clean Architecture Kotlin Multiplatform Mobile What're inside? - Jetpack Compose - Hilt - Ktor - Android Instrument Test - Unit Test - SQL

null 17 Dec 5, 2022
An app that allows you to search for Github profiles of users and their repositories [d.light Android Engineer Test], for the Android Engineer Role

An app that allows you to search for Github profiles of users and their repositories [d.light Android Engineer Test], for the Android Engineer Role

Joel Kanyi 9 Aug 26, 2022
Provides feign request interceptors to sign http requests using AWS Signature V4.

feign-aws-sigv4 Provides feign request interceptors to sign http requests using AWS Signature V4. Usage with SDK V1 Include the following dependency i

Tommy Schmidt 2 Nov 11, 2022
GitHub application fetches events, repositories and profile using GitHub APIs

GitHub application using GitHub REST API Dagger MVVM architecture Mockk Jetpack Compose Kotlin Coroutines Application pages Attention If you want to u

Marjan DavoodiNejad 6 Oct 17, 2022
Test app to retrieve the spaceX Info based on the Rest API

DeepamSpaceX Test app to retrieve the spaceX Info based on the Rest API. S.O.L.I.D Design principle MVVM Pattern Retrofit with Coroutines Clean code a

Deepam Palaniswami 0 Oct 24, 2021
Water tracker app helps you with daily reminder to drink water. This app is just a trial to test and improve my android development skills.

?? About Me I am a self-thaught developer learning web and android development. This app is just a trial to test and improve my android development sk

Sinan Sonmez (Chaush) 28 Dec 17, 2022
📺 A sample app to showcase Twyper with GitHub repo search API

swipe-search A sample app to showcase Twyper with GitHub repo search API ?? Demo Screen.Recording.2022-02-20.at.9.36.10.PM.mov ?? Tech Stack What How

theapache64 26 Jul 18, 2022