https://github.com/enniel/torii-vk
https://github.com/enniel/torii-vk
ember torii vk vkontakte
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/enniel/torii-vk
- Owner: enniel
- License: mit
- Created: 2016-12-05T13:59:44.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-15T13:35:09.000Z (almost 8 years ago)
- Last Synced: 2025-03-05T04:02:10.162Z (about 2 months ago)
- Topics: ember, torii, vk, vkontakte
- Language: JavaScript
- Size: 224 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Torii VK
Provider for authentication on [vk.com](https://vk.com) using [Torii](https://github.com/Vestorly/torii).
## Installation
```sh
npm i torii-vk --save-dev
```## Using
To use this addon you must [create app](https://vk.com/editapp?act=create).
And add `clientId` in environment file.```js
...
ENV['torii'] = {
providers: {
'vk-oauth2': {
clientId:
},
'vk-oauth2-bearer': {
clientId:
}
}
}
...
```Add the action in the route:
```js
...
actions: {
authenticate(provider) {
this.get('torii').open(provider).then(authData => {
//Your code
}, error => {
//Your code
});
}
}
...
```In template:
```hbs
...
Implicit Flow
Authorization code flow
...
```## Support
Having trouble? Open an issue!