@@ -55,8 +55,4 @@ export default class MockOAuthApi implements OAuthRequestApi {
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
authFlow() {
|
||||
return 'popup';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import {
|
||||
AuthProviderInfo,
|
||||
ConfigApi,
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { makeStyles, Theme } from '@material-ui/core/styles';
|
||||
import Dialog from '@material-ui/core/Dialog';
|
||||
import DialogActions from '@material-ui/core/DialogActions';
|
||||
|
||||
@@ -32,7 +32,7 @@ import { guestProvider } from './guestProvider';
|
||||
import { customProvider } from './customProvider';
|
||||
import { IdentityApiSignOutProxy } from './IdentityApiSignOutProxy';
|
||||
|
||||
export const PROVIDER_STORAGE_KEY = '@backstage/core:SignInPage:provider';
|
||||
const PROVIDER_STORAGE_KEY = '@backstage/core:SignInPage:provider';
|
||||
|
||||
export type SignInProviderType = {
|
||||
[key: string]: {
|
||||
|
||||
@@ -104,6 +104,7 @@ export class OAuthAdapter implements AuthProviderRouteHandlers {
|
||||
const origin = req.query.origin?.toString();
|
||||
const redirectUrl = req.query.redirectUrl?.toString();
|
||||
const flow = req.query.flow?.toString();
|
||||
|
||||
if (!env) {
|
||||
throw new InputError('No env provided in request query parameters');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user