{"id":21036464,"url":"https://github.com/moemoe89/simple-implementation-jwt-golang","last_synced_at":"2026-04-15T07:31:57.446Z","repository":{"id":57514436,"uuid":"74092835","full_name":"moemoe89/simple-implementation-jwt-golang","owner":"moemoe89","description":"🔐 Simple Implementation JWT using Golang (Iris Framework), Docker, Travis CI and Coveralls","archived":false,"fork":false,"pushed_at":"2020-02-28T15:47:35.000Z","size":8379,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-20T16:18:11.782Z","etag":null,"topics":["docker","go","golang","iris","jwt","travis-ci"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moemoe89.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-18T03:42:36.000Z","updated_at":"2020-06-14T16:29:20.000Z","dependencies_parsed_at":"2022-09-06T04:00:20.895Z","dependency_job_id":null,"html_url":"https://github.com/moemoe89/simple-implementation-jwt-golang","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moemoe89%2Fsimple-implementation-jwt-golang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moemoe89%2Fsimple-implementation-jwt-golang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moemoe89%2Fsimple-implementation-jwt-golang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moemoe89%2Fsimple-implementation-jwt-golang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moemoe89","download_url":"https://codeload.github.com/moemoe89/simple-implementation-jwt-golang/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243476663,"owners_count":20296926,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","go","golang","iris","jwt","travis-ci"],"created_at":"2024-11-19T13:20:08.806Z","updated_at":"2025-10-29T23:43:36.284Z","avatar_url":"https://github.com/moemoe89.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/moemoe89/simple-implementation-jwt-golang.svg?branch=master)](https://travis-ci.org/moemoe89/simple-implementation-jwt-golang)\n[![Coverage Status](https://coveralls.io/repos/github/moemoe89/simple-implementation-jwt-golang/badge.svg?branch=master)](https://coveralls.io/github/moemoe89/simple-implementation-jwt-golang?branch=master)\n[![Go Report Card](https://goreportcard.com/badge/github.com/moemoe89/simple-implementation-jwt-golang)](https://goreportcard.com/report/github.com/moemoe89/simple-implementation-jwt-golang)\n\n# Simple-Implementation-JWT-Golang\n\n![demo](simple-implementation-jwt-golang-demo.gif)\n\nSimple Implementation JWT Using Golang (Iris Framework) with Go Mod as Programming Language\n\nThis repository created to show the example for using [JWT](https://jwt.io/) with this library [dgrijalva/jwt-go](https://github.com/dgrijalva/jwt-go)\n\n## Directory structure\nYour project directory structure should look like this\n```\n  + your_gopath/\n  |\n  +--+ src/github.com/moemoe89\n  |  |\n  |  +--+ simple-implementation-jwt-golang/\n  |     |\n  |     +--+ main.go\n  |        + api/\n  |        + routers/\n  |        + ... any other source code\n  |\n  +--+ bin/\n  |  |\n  |  +-- ... executable file\n  |\n  +--+ pkg/\n     |\n     +-- ... all dependency_library required\n\n```\n\n## Requirements\n\nGo \u003e= 1.11\n\n## Setup and Build\n\n* Setup Golang \u003chttps://golang.org/\u003e\n* Under `$GOPATH`, do the following command :\n```\n$ mkdir -p src/github.com/moemoe89\n$ cd src/github.com/moemoe89\n$ git clone \u003curl\u003e\n$ mv \u003ccloned directory\u003e simple-implementation-jwt-golang\n```\n\n# Demo\nUse this host [https://simple-jwt-golang.herokuapp.com/](https://simple-jwt-golang.herokuapp.com/)\n\n# Running \u0026 Using Application\nMake sure you already have [POSTMAN](https://www.getpostman.com/)\n\n\t    \u003e Running the application using `go run main.go`\n\t    \u003e Open your POSTMAN.\n\t\t\u003e Fill the url with localhost:8789/generate and choose GET method\n\t\t\u003e You will get the response below :\n\t\t  {\n            \"message\": \"Successfully generated token.\",\n            \"success\": true,\n            \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHBpcmVkX3RpbWUiOjE0Nzk0NDExNTEsInRoaXJkX3BhcnR5IjoibW9tbyJ9.P5sZwzCJD1DYptpuCp4hIyY5pGGnOB7m6ZHHi_mBEi4\"\n          }\n        \u003e For checking the token, fill the url with localhost:3000/parse and choose GET method. Fill the Header variable with Authorization and the value with token that you've get. You will get the response below :\n          {\n            \"data\": {\n              \"third_party\": \"momo\",\n              \"expired_time\": 1479441229\n            },\n            \"message\": \"Successfully parsed token.\",\n            \"success\": true\n          }\n\n# Running with Docker\n```\n$ docker build -t simple-implementation-jwt-golang .\n$ docker run -d -p 8789:8789 --name simple-jwt-go simple-implementation-jwt-golang\n```\nHow to stop the docker\n```\n$ docker ps\n```\nCopy the CONTAINER ID\n```$xslt\n$ docker stop {$CONTAINER_ID}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoemoe89%2Fsimple-implementation-jwt-golang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoemoe89%2Fsimple-implementation-jwt-golang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoemoe89%2Fsimple-implementation-jwt-golang/lists"}