{"id":15687894,"url":"https://github.com/orisano/go-adal","last_synced_at":"2025-05-07T18:09:17.128Z","repository":{"id":43002580,"uuid":"97389859","full_name":"orisano/go-adal","owner":"orisano","description":"unofficial Active Directory Authentication Library for go","archived":false,"fork":false,"pushed_at":"2025-02-26T09:26:20.000Z","size":174,"stargazers_count":16,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T18:05:50.547Z","etag":null,"topics":["active-directory","adal","authentication","azure-ad","golang"],"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/orisano.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-07-16T14:45:17.000Z","updated_at":"2025-04-09T10:12:04.000Z","dependencies_parsed_at":"2024-10-23T20:43:08.610Z","dependency_job_id":"f23f792a-7d89-42b3-a7d9-8bbc386c7ed5","html_url":"https://github.com/orisano/go-adal","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/orisano%2Fgo-adal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fgo-adal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fgo-adal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fgo-adal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orisano","download_url":"https://codeload.github.com/orisano/go-adal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252931534,"owners_count":21827111,"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":["active-directory","adal","authentication","azure-ad","golang"],"created_at":"2024-10-03T17:51:28.087Z","updated_at":"2025-05-07T18:09:17.091Z","avatar_url":"https://github.com/orisano.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-ADAL\n[![Build Status](https://app.travis-ci.com/orisano/go-adal.svg?branch=master)](https://app.travis-ci.com/orisano/go-adal)\n\u003ca href=\"https://codeclimate.com/github/orisano/go-adal\"\u003e\u003cimg src=\"https://codeclimate.com/github/orisano/go-adal/badges/gpa.svg\" alt=\"Code Climate\"\u003e\u003c/img\u003e\u003c/a\u003e\n\u003ca href=\"https://codeclimate.com/github/orisano/go-adal/coverage\"\u003e\u003cimg src=\"https://codeclimate.com/github/orisano/go-adal/badges/coverage.svg\" /\u003e\u003c/a\u003e\n\nunofficial Active Directory Authentication Library for go.\n\n## Installation\n```\ngo get github.com/orisano/go-adal\n```\n\n## How to Use\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"io\"\n\t\"log\"\n\t\"os\"\n\t\n\t\"github.com/orisano/go-adal\"\n)\n\nconst (\n\ttenant = \"common\"\n\tresource = \"resource.example\"\n\tclientID = \"xxxxxxxxxxxxxxxxx\"\n\tclientSecret = \"xxxxxxxxxxxxxxxxx\"\n)\n\nfunc main() {\n\tac, err := adal.NewAuthenticationContext(tenant)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tctx := context.Background()\n\tclient, err := ac.Client(ctx, resource, clientID, clientSecret)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tresp, err := client.Get(\"http://api.example/v1/resource\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer resp.Body.Close()\n\t\n\tio.Copy(os.Stdout, resp.Body)\n}\n```\n\n## Author\nNao Yonashiro (@orisano)\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forisano%2Fgo-adal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forisano%2Fgo-adal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forisano%2Fgo-adal/lists"}