This commit is contained in:
Anna Bodnia
2017-04-20 19:54:14 +03:00
parent 7790383ba6
commit 84b408849d
9 changed files with 63 additions and 57 deletions

View File

@@ -1,11 +1,12 @@
import win from "core/window"
import { btoa } from "core/utils"
export default function authorize ( auth, authActions, errActions, configs ) {
let { schema, scopes, name, clientId } = auth
let redirectUrl = configs.oauth2RedirectUrl
let scopeSeparator = " "
let state = name
let state = btoa(new Date())
let flow = schema.get("flow")
let url