summaryrefslogtreecommitdiffstats
path: root/web/react/pages/authorize.jsx
blob: db42c826607c2a730eeb4def05763e76b083fae0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (c) 2015 Spinpunch, Inc. All Rights Reserved.
// See License.txt for license information.

var Authorize = require('../components/authorize.jsx');

function setupAuthorizePage(teamName, appName, responseType, clientId, redirectUri, scope, state) {
    React.render(
        <Authorize
            teamName={teamName}
            appName={appName}
            responseType={responseType}
            clientId={clientId}
            redirectUri={redirectUri}
            scope={scope}
            state={state}
        />,
        document.getElementById('authorize')
    );
}

global.window.setup_authorize_page = setupAuthorizePage;