Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: api videos authentication #3316

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

mikeallisonJS
Copy link
Collaborator

Description

Issue

videos admin frontend needs specific authentication.

Solution

Add authentication & query to api-videos

@mikeallisonJS mikeallisonJS added effort: 5 priority: soon type: feat Brand new functionality, features, pages, workflows, endpoints, etc. labels Aug 27, 2024
@mikeallisonJS mikeallisonJS added this to the 2024 - 06 Cycle milestone Aug 27, 2024
@mikeallisonJS mikeallisonJS self-assigned this Aug 27, 2024
Copy link

linear bot commented Aug 27, 2024

Copy link
Contributor

github-actions bot commented Aug 27, 2024

Warnings
⚠️ ❗ Big PR (1048 changes)
⚠️ Is this PR related to a Basecamp issue? If so link it via the PR description - https://3.basecamp.com/3105655/buckets/:projectId/todos/:todoId

(change count - 1048): Pull Request size seems relatively large. If Pull Request contains multiple changes, split each into separate PR will helps faster, easier review.

Generated by 🚫 dangerJS against e8d69c2

Copy link
Contributor

github-actions bot commented Aug 27, 2024

The latest updates on your projects.

Name Status Preview Updated (UTC)
docs ✅ Ready Visit Preview Sat Aug 31 01:59:01 UTC 2024

Copy link
Contributor

github-actions bot commented Aug 27, 2024

The latest updates on your projects.

Name Status Preview Updated (UTC)
arclight ✅ Ready Visit Preview Sat Aug 31 01:59:12 UTC 2024

Copy link
Contributor

github-actions bot commented Aug 27, 2024

The latest updates on your projects.

Name Status Preview Updated (UTC)
videos-admin ✅ Ready Visit Preview Sat Aug 31 01:59:46 UTC 2024

Copy link
Contributor

github-actions bot commented Aug 27, 2024

The latest updates on your projects.

Name Status Preview Updated (UTC)
watch ✅ Ready Visit Preview Sat Aug 31 02:00:54 UTC 2024

Copy link
Contributor

github-actions bot commented Aug 27, 2024

The latest updates on your projects.

Name Status Preview Updated (UTC)
journeys ✅ Ready Visit Preview Sat Aug 31 02:00:19 UTC 2024

Copy link
Contributor

github-actions bot commented Aug 27, 2024

The latest updates on your projects.

Name Status Preview Updated (UTC)
journeys-admin ✅ Ready Visit Preview Sat Aug 31 02:01:28 UTC 2024

apps/api-videos/db/schema.prisma Outdated Show resolved Hide resolved
apps/api-videos/db/schema.prisma Outdated Show resolved Hide resolved
Comment on lines 262 to 270
currentVideoRoles: t.field({
type: [VideoAdminUserRole],
nullable: false,
authScopes: {
isAuthenticated: true
},
resolve: async (_query, _args, ctx: Context) =>
ctx.currentVideoUser?.roles ?? []
})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we break this out into a user file and just extend the user object out? that way the me call could be:

me {
  id
  videoUserRoles {
    id
    roles
  }
}

apps/api-videos/src/yoga.ts Outdated Show resolved Hide resolved
libs/yoga/jest.config.ts Outdated Show resolved Hide resolved
libs/yoga/README.md Outdated Show resolved Hide resolved
libs/yoga/README.md Outdated Show resolved Hide resolved
libs/yoga/project.json Outdated Show resolved Hide resolved
libs/yoga/project.json Outdated Show resolved Hide resolved
@jesus-film-bot
Copy link
Collaborator

Ran Plan for dir: infrastructure workspace: default

Plan Failed: This project is currently locked by an unapplied plan from pull #3276. To continue, delete the lock from #3276 or apply that plan and merge the pull request.

Once the lock is released, comment atlantis plan here to re-plan.

describe('usesr', () => {
const authClient = getClient({
headers: {
authorization: 'token'

Check failure

Code scanning / CodeQL

Hard-coded credentials Critical test

The hard-coded value "token" is used as
authorization header
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort: 5 priority: soon type: feat Brand new functionality, features, pages, workflows, endpoints, etc.
Projects
None yet
3 participants