{"id":13551438,"url":"https://github.com/myConsciousness/authorization-header","last_synced_at":"2025-04-03T01:32:41.624Z","repository":{"id":56826341,"uuid":"436080359","full_name":"myConsciousness/authorization-header","owner":"myConsciousness","description":"AuthorizationHeader is an open-sourced Dart library. With AuthorizationHeader, you can easily manage authorization header on your application.","archived":false,"fork":false,"pushed_at":"2021-12-14T01:24:31.000Z","size":43,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-19T10:00:43.993Z","etag":null,"topics":["authorization-header","authrization","dart","flutter","header","http","library","pubdev"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/authorization_header","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/myConsciousness.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2021-12-08T01:39:02.000Z","updated_at":"2021-12-24T00:53:45.000Z","dependencies_parsed_at":"2022-09-20T22:54:34.497Z","dependency_job_id":null,"html_url":"https://github.com/myConsciousness/authorization-header","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myConsciousness%2Fauthorization-header","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myConsciousness%2Fauthorization-header/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myConsciousness%2Fauthorization-header/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myConsciousness%2Fauthorization-header/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myConsciousness","download_url":"https://codeload.github.com/myConsciousness/authorization-header/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222905907,"owners_count":17055819,"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":["authorization-header","authrization","dart","flutter","header","http","library","pubdev"],"created_at":"2024-08-01T12:01:48.340Z","updated_at":"2024-11-03T21:32:19.988Z","avatar_url":"https://github.com/myConsciousness.png","language":"Dart","readme":"**_A most easily usable authorization header management library in Dart!_**\n\n[![pub package](https://img.shields.io/pub/v/authorization_header.svg)](https://pub.dev/packages/authorization_header)\n[![codecov](https://codecov.io/gh/myConsciousness/authorization-header/branch/main/graph/badge.svg?token=3PS9LSWBWT)](https://codecov.io/gh/myConsciousness/authorization-header)\n[![Analyzer](https://github.com/myConsciousness/authorization-header/actions/workflows/analyzer.yml/badge.svg)](https://github.com/myConsciousness/authorization-header/actions/workflows/analyzer.yml)\n[![Test](https://github.com/myConsciousness/authorization-header/actions/workflows/test.yml/badge.svg)](https://github.com/myConsciousness/authorization-header/actions/workflows/test.yml)\n\n\u003c!-- TOC --\u003e\n\n- [1. About](#1-about)\n  - [1.1. Supported](#11-supported)\n    - [1.1.1. Authorization Header](#111-authorization-header)\n    - [1.1.2. Authorization Type](#112-authorization-type)\n  - [1.2. Introduction](#12-introduction)\n    - [1.2.1. Install Library](#121-install-library)\n    - [1.2.2. Import It](#122-import-it)\n    - [1.2.3. Use AuthorizationHeader](#123-use-authorizationheader)\n  - [1.3. License](#13-license)\n  - [1.4. More Information](#14-more-information)\n\n\u003c!-- /TOC --\u003e\n\n# 1. About\n\n`AuthorizationHeader` is an open-sourced Dart library.\u003c/br\u003e\nWith `AuthorizationHeader`, you can easily manage authorization header on your application.\n\nThe `AuthorizationHeader` library provides a common features for generating authorization header for use with Basic or Bearer authorization. Proxy-Authorization for proxies is also supported.\n\nBy using the `AuthorizationHeader` library, there is no need for redundant implementation or research to generate the authorization header anymore!\n\n## 1.1. Supported\n\n### 1.1.1. Authorization Header\n\n| Name                |\n| ------------------- |\n| Authorization       |\n| Proxy-Authorization |\n\n### 1.1.2. Authorization Type\n\n| Name   | RFC                                                       |\n| ------ | --------------------------------------------------------- |\n| Basic  | [RFC 7617](https://datatracker.ietf.org/doc/html/rfc7617) |\n| Bearer | [RFC 6750](https://datatracker.ietf.org/doc/html/rfc6750) |\n\n## 1.2. Introduction\n\n### 1.2.1. Install Library\n\n**_With Dart:_**\n\n```terminal\n dart pub add authorization_header\n```\n\n**_With Flutter:_**\n\n```terminal\n flutter pub add authorization_header\n```\n\n### 1.2.2. Import It\n\n```dart\nimport 'package:authorization_header/authorization_header.dart';\n```\n\n### 1.2.3. Use AuthorizationHeader\n\n`AuthorizationHeader` can be used in conjunction with the [http](https://pub.dev/packages/http) package as follows.\n\n```dart\nimport 'package:authorization_header/authorization_header.dart';\nimport 'package:http/http.dart' as http;\n\nvoid main() async {\n  /// You can switch between Default and Proxy in the constructor.\n  final authHeader = Auth.of().bearer(token: 'test_token');\n  final proxyAuthHeader = Auth.ofProxy().bearer(token: 'test_token');\n\n  print(authHeader); // -\u003e name: Authorization, value: Bearer test\n  print(proxyAuthHeader); // -\u003e name: Proxy-Authorization, value: Bearer test\n\n  await http.post(\n    Uri.parse('https://test.com'),\n    headers: {\n      authHeader.name: authHeader.value,\n      proxyAuthHeader.name: proxyAuthHeader.value,\n    },\n  );\n}\n```\n\n## 1.3. License\n\n```license\nCopyright (c) 2021, Kato Shinya. All rights reserved.\nUse of this source code is governed by a\nBSD-style license that can be found in the LICENSE file.\n```\n\n## 1.4. More Information\n\n`AuthorizationHeader` was designed and implemented by **_Kato Shinya_**.\n\n- [Creator Profile](https://github.com/myConsciousness)\n- [License](https://github.com/myConsciousness/authorization-header/blob/main/LICENSE)\n- [API Document](https://pub.dev/documentation/authorization_header/latest/authorization_header/authorization_header-library.html)\n- [Release Note](https://github.com/myConsciousness/authorization-header/releases)\n- [Bug Report](https://github.com/myConsciousness/authorization-header/issues)\n","funding_links":[],"categories":["Dart"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FmyConsciousness%2Fauthorization-header","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FmyConsciousness%2Fauthorization-header","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FmyConsciousness%2Fauthorization-header/lists"}