All posts
SecurityCompliance

How to pass Google's CASA assessment for restricted OAuth scopes

OpsaFlow 6 min read

If your app asks for a restricted Google OAuth scope — reading Gmail, reading or managing Drive files — and that data touches your servers, Google will ask for a security assessment before it approves the app. That assessment is CASA, and it is the step that most often turns a two-week integration into a two-month launch.

We have been through it ourselves for Dioveo, and we wrote up what the review actually asks for. This post is the broader version: what CASA is, how to prepare for it, and the mistakes that cost teams the most time. If you would rather have someone do the preparation with you, that is what our Google CASA readiness service is for.

What CASA is, and who needs it

CASA stands for Cloud Application Security Assessment. It is a framework maintained by the App Defense Alliance, and it is based on the OWASP Application Security Verification Standard (ASVS).

Google requires it as part of OAuth app verification when your app uses restricted scopes and stores or processes the data on servers you control. Sensitive scopes alone go through verification without a security assessment; restricted scopes with server-side access are the trigger. If everything happens in the user's browser or on their device and nothing reaches your backend, the requirement can be different — check Google's current guidance for your exact case before you plan around it.

The assessment itself is carried out by an authorised lab listed by the App Defense Alliance. Google does not run it, and neither does a consultant. The lab assesses your app at the level Google assigns, and if you pass, it issues a Letter of Validation that you submit back to Google. The assessment has to be renewed every year for as long as you keep the restricted scope.

Two reviews under one name

The first thing to understand is that you are really preparing for two reviews.

The security review is the CASA part: the lab checks your application against a set of ASVS-based controls, usually starting from scan results and a questionnaire about how you build and run the app.

The scopes and privacy review is Google's part of OAuth verification. Google asks whether you need each scope you requested, whether your privacy policy matches what the app actually does, and whether users see a clear explanation before they grant access. A demo video of the consent flow is part of it.

Teams tend to prepare hard for the first and get held up by the second. Plan both from the start.

Step 1: reduce your scope before anything else

Every restricted scope you can drop is work you do not have to evidence. For each scope, write one sentence on why a narrower one will not do. If a metadata or file-specific scope covers the feature, use it. If a feature only exists because of a broad scope, consider whether it is worth a year of reassessments.

Then map where the restricted data goes: which services receive it, where it is stored, for how long, who can reach it, and what happens when a user disconnects or deletes their account. This data-flow map is the backbone of everything that follows.

Step 2: run a gap analysis against the controls

With the scope fixed, walk through the CASA controls against your real system, not your intended one. The findings that come up most often are unglamorous:

  • Authentication and sessions — weak session handling, missing re-authentication for sensitive actions, tokens that never expire.
  • Secrets — API keys and OAuth client secrets in the repository, in environment files, or shared between environments.
  • Transport security — outdated TLS versions or ciphers, missing HSTS, internal services talking in plain text.
  • Access control — admin endpoints without proper checks, broad database credentials, no separation between tenants.
  • Logging and error handling — stack traces returned to users, logs that contain tokens or email content, no audit trail of who accessed what.
  • Dependencies — known vulnerabilities in direct and transitive packages, many of them in code you never wrote.
  • Cloud configuration — public storage buckets, over-privileged service accounts, encryption at rest that is assumed rather than verified.

None of these is exotic, and all of them are cheaper to find yourself than to have a lab find for you.

Step 3: fix, then make the fixes repeatable

Fix the findings in order of what the lab will see first. Then put the checks into your pipeline: dependency scanning, static analysis (SAST) and dynamic scanning (DAST) running on every change, secrets scanning on every commit. This matters twice. It produces clean results for this year's assessment, and it means next year's reassessment starts from a passing baseline instead of a fresh scramble.

Step 4: build the evidence pack

Labs assess what you can show them. Collect, in one place:

  • the scan reports and how you resolved each finding (or why a finding is not exploitable);
  • the answers to the self-assessment questionnaire, each backed by a screenshot, configuration file, or policy;
  • your data-flow map and data retention rules;
  • your privacy policy, checked line by line against the data-flow map;
  • the consent-screen copy and the demo video Google needs for the scopes review.

Documentation that is produced by your pipeline every day is free. Documentation assembled by hand the week before the assessment is slow and usually incomplete.

Step 5: pre-assess before the lab does

Before you book the lab, run the assessment yourself, or have someone outside the team do it. Go through every control as the lab will, using only the evidence in your pack. Anything that needs explaining in a call is a gap. Each round trip with a lab has its own queue, so one avoided round trip can save more calendar time than any engineering shortcut.

Step 6: go through the lab, then keep it passing

During the assessment, the lab will come back with questions and findings. Answer quickly, fix what is real, and document what is not exploitable. Fast turnaround on your side is what keeps the calendar short.

Once you have the Letter of Validation, the work does not stop. Google asks for a new assessment every year, and any change to your scopes or architecture can bring the review back early. Keep the pipeline checks running and the evidence pack current.

What to budget

In our own experience with Dioveo, the engineering work was roughly two weeks, but the elapsed time was closer to two months because of review round trips. Your numbers will differ, but the shape is common: plan around the calendar, not the effort, and do not launch into a hard deadline without slack.

Where we can help

We help teams get ready for CASA and through it: scope and data-flow review, a gap analysis against the CASA controls, fixing the findings, building the evidence pack, a pre-assessment before the lab, and support during the lab assessment and the annual reassessment.

To be clear about what we are not: OpsaFlow is not an App Defense Alliance authorised lab, and we do not issue CASA assessments, certificates or Letters of Validation. Those come only from an authorised lab. Our job is to make sure that when the lab looks, there is nothing left to find.

If you have a restricted-scope review coming, see how our CASA readiness work runs, or tell us where you are.

Keep reading