An open API service indexing awesome lists of open source software.

https://github.com/enniel/torii-vk


https://github.com/enniel/torii-vk

ember torii vk vkontakte

Last synced: 11 days ago
JSON representation

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!