blob: 2bc8b539d4fd0b9e53b7a3809324ab65966efdd7 (
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 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
var Authorize = require('../components/authorize.jsx');
function setupAuthorizePage(props) {
ReactDOM.render(
<Authorize
teamName={props.TeamName}
appName={props.AppName}
responseType={props.ResponseType}
clientId={props.ClientId}
redirectUri={props.RedirectUri}
scope={props.Scope}
state={props.State}
/>,
document.getElementById('authorize')
);
}
global.window.setup_authorize_page = setupAuthorizePage;
|