minor clean up

Signed-off-by: headphonejames <generalfuzz@gmail.com>
This commit is contained in:
headphonejames
2023-02-28 17:20:23 -08:00
parent d7e856ad55
commit 57ec7e2250
5 changed files with 4 additions and 5 deletions
@@ -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');
}