3010: Apollo 4 major update and complete security overhaul to prepare for public api support

* 2919: rewrite for update to apollo 4 (#131)

* rewrite for update to apollo 4

* removed container tests, edited make to publish any branch to staging

* revert makefile

* cleanup

* update 1

* more fixes to get it working on aws

* enabled csrf prevention protection, testing if build works

* switched to express version

* changed the healthcheck url

* added cache to restdatasources

* 3011: create a login mutation on graphql server that responds with a access token (#133)

* 3011 added login rest endpoint and general scope fixes

* changed login auth to basic auth username and password

* minor changes from CR feedback

* force update

* added tighter timeout for idle knex connection

* Refactor authentication and scopes (#134)

* big refactor of scopes in graphql

* cr fixes

* some security fixes (#135)

* some security fixes

* cleanup

* update staging

* minor readme change
This commit is contained in:
Arwid Thornström
2022-12-12 12:58:24 +01:00
committed by GitHub
parent 4248465031
commit c68c182b64
78 changed files with 3783 additions and 14606 deletions
+17
View File
@@ -1,5 +1,22 @@
import { KeyValueCache } from '@apollo/utils.keyvaluecache';
import { ClaimVerifyResult } from '../cognito/cognito-client';
export type Maybe<T> = T | undefined;
export interface IAuthObject {
userName: String;
isValid?: boolean;
accessToken?: String | null;
idToken?: String | null;
}
export type User = IAuthObject | ClaimVerifyResult;
export type DataSourceOptions = {
cache: KeyValueCache<string>;
user: IAuthObject | ClaimVerifyResult;
};
export interface PaginationInput {
limit: number;
offset?: number;