{"id":15193866,"url":"https://github.com/navarabv/nativescript-adal","last_synced_at":"2025-10-27T20:31:07.348Z","repository":{"id":57129466,"uuid":"105241081","full_name":"NavaraBV/nativescript-adal","owner":"NavaraBV","description":"NativeScript Active Directory Authentication Library plugin","archived":false,"fork":false,"pushed_at":"2024-08-28T00:07:56.000Z","size":1985,"stargazers_count":4,"open_issues_count":5,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-01T08:01:42.985Z","etag":null,"topics":["active-directory","nativescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/NavaraBV.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}},"created_at":"2017-09-29T07:06:04.000Z","updated_at":"2024-05-30T16:33:07.000Z","dependencies_parsed_at":"2024-09-23T20:01:05.950Z","dependency_job_id":null,"html_url":"https://github.com/NavaraBV/nativescript-adal","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NavaraBV%2Fnativescript-adal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NavaraBV%2Fnativescript-adal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NavaraBV%2Fnativescript-adal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NavaraBV%2Fnativescript-adal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NavaraBV","download_url":"https://codeload.github.com/NavaraBV/nativescript-adal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238552995,"owners_count":19491355,"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","nativescript"],"created_at":"2024-09-27T22:06:19.293Z","updated_at":"2025-10-27T20:31:01.436Z","avatar_url":"https://github.com/NavaraBV.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NativeScript Active Directory Authentication Library Plugin\n\n[![Build Status][build-status]][build-url]\n[![NPM version][npm-image]][npm-url]\n[![Downloads][downloads-image]][npm-url]\n[![BCH compliance][bch-url-repo]][bch-url]\n\n[build-status]:https://travis-ci.org/NavaraBV/nativescript-adal.svg?branch=master\n[build-url]:https://travis-ci.org/NavaraBV/nativescript-adal\n[bch-url-repo]:https://bettercodehub.com/edge/badge/NavaraBV/nativescript-adal?branch=master\n[bch-url]:https://bettercodehub.com/\n[npm-image]:https://img.shields.io/npm/v/@navara/nativescript-adal.svg\n[npm-url]:https://npmjs.org/package/@navara/nativescript-adal\n[downloads-image]:http://img.shields.io/npm/dm/@navara/nativescript-adal.svg\n\nThis plugin allows you to quickly add Azure Active Directory Authentication to your NativeScript app\n\n## Prerequisites / Requirements\n\nYour application requires to be registered inside your Azure Active Directory (AAD). Visit the [Azure Portal](https://portal.azure.com) and log in with your organizational account. Grab your Azure AD Tenant ID and Application ID after registering your application.\n\n## Installation\n\n```javascript\ntns plugin add @navara/nativescript-adal\n```\n\n## Usage (Angular example)\n\nImport the AdalContext class in application in, for example, an 'AdalService' and initialize it.\n\n```javascript\nimport { Injectable } from '@angular/core';\nimport { AdalContext } from '@navara/nativescript-adal';\n\nconst authority: string = 'https://login.microsoftonline.com/{your-tenant-id}';\nconst clientId: string = '{your-application-id}';\nconst resourceId: string = '00000002-0000-0000-c000-000000000000';\n\n@Injectable()\nexport class AdalService {\n\n  public adalContext: AdalContext;\n\n  constructor() {\n    this.adalContext = new AdalContext(authority, clientId, resourceId);\n  }\n}\n```\n\n...and consume this service in your application!\n\n```javascript\nexport class AppComponent {\n\n  constructor(private adalService: AdalService) { }\n\n  public login() {\n    this.adalService.adalContext.login().then((result) =\u003e {\n      console.log('Success!');\n    })\n  }\n}\n```\n\n## Known issues on iOS\n\n#### Trouble running on the simulator\nOpen or create `App_Resources/iOS/\u003cappname\u003e.entitlements` and add these two keys with the value `true`:\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003c!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\"\u003e\n\u003cplist version=\"1.0\"\u003e\n\u003cdict\u003e\n    \u003ckey\u003ecom.apple.keystore.access-keychain-keys\u003c/key\u003e\n    \u003ctrue/\u003e\n    \u003ckey\u003ecom.apple.keystore.device\u003c/key\u003e\n    \u003ctrue/\u003e\n\u003c/dict\u003e\n\u003c/plist\u003e\n```\n    \n## License\n\nSee [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavarabv%2Fnativescript-adal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnavarabv%2Fnativescript-adal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavarabv%2Fnativescript-adal/lists"}