OpenID Connect Core cites four sections of RFC 6749 that shape what a customer sees when granting or declining access at first sign-in. They govern the redirect, the code exchange, the error, and the risks a granted credential carries.
- section 4.1.2.1 — cited by OpenID Connect Core; Pipedrive's page says a declined authorization sends an error to its URL
- section 4.1.3 — the access request; a grant starts the code-to-access exchange
- section 10.12 — access security considerations; the scope and lifetime of a granted credential are the risks you inherit
- section 10.13 — refresh security considerations; a refresh credential outlives the access credential
- the practical rule — your redirect URI is one endpoint with two doors: one for grant, one for decline, both built before you ship the button
Why these four sections matter at your sign-in screen
The four sections are 4.1.2.1, 4.1.3, 10.12, and 10.13 of RFC 6749. OpenID Connect Core 1.0 cites each of them.
If you review what a customer sees when granting or declining access, all four sections shape what happens around that decision. Two appear together in the spec's security considerations (10.12 and 10.13). Section 4.1.3 is not part of that group. One sits earlier, on the error response itself.
The OpenID specification also cites RFC 6749 as a whole, naming it plainly as "OAuth 2.0 (Hardt, D., Ed., “The OAuth 2.0 Authorization Framework,” October 2012.) [RFC6749]." That general citation sits underneath the section-specific ones. It tells you the whole framework is in scope, not just the four places.
Growth leads reviewing a first sign-in flow have a specific vantage point. You are the person who clicks the button before anyone else does. You read the copy the customer reads. You watch where a decline lands and where a grant lands. The four cited sections are the machinery behind what you watch. Understanding them lets you ask your engineering team the right questions and catch the gaps before a customer does.
How we evaluated
The test was criteria first: what a growth lead must know before signing off on a first sign-in flow. We read the OpenID specification's citations of RFC 6749, then the cited sections themselves, plus two pages a practitioner actually holds during the flow: Google's web server application guide and Pipedrive's OAuth authorization page.
We used public specification text plus two public vendor pages (Google's web server guide and Pipedrive's OAuth authorization page), as described in the previous paragraph. Where a section names a requirement, we repeat it as a requirement, not as a preference. Where a source leaves a question open, we say so once and tell you who to ask.
A section earns a place in this post only when it touches what happens at or around grant or decline. Sections that do not touch that moment are left out.
Section 4.1.2.1: the error that comes back on decline
OpenID Connect Core cites section 4.1.2.1 by number: "Section 4.1.2.1 of OAuth 2.0 (Hardt, D., Ed., “The OAuth 2.0 Authorization Framework,” October 2012.) [RFC6749]." Pipedrive's documented flow sends an error to your redirect URI on decline: "Or, if a customer declines, the corresponding error will also be sent to this URL." The OpenID specification cites this section directly: "Section 4.1.2.1 of OAuth 2.0 (Hardt, D., Ed., “The OAuth 2.0 Authorization Framework,” October 2012.) [RFC6749]."
What this means at your screen: the decline arrives as a structured error at your redirect URI; what the customer sees on screen is your design decision. It is a structured error. Your redirect URI receives it the same way it receives a grant.
Google's web server guide states the customer's role plainly: "The user decides whether to grant the permissions to your application." That decision happens before any error is sent. Your flow must be ready for both answers.
If your redirect handler only expects a code, a decline sends it something else. The handler should branch on the presence of the error parameter before it does anything else.
Pipedrive's marketplace page describes the same shape for its own authorization: "Or, if a customer declines, the corresponding error will also be sent to this URL." Your platform may word it differently. Check yours. Your platform may word it differently. Check yours.
The practical rule: your redirect URI is one endpoint with two doors. One door opens on grant. The other opens on decline. Both must be built before you ship the button.
What this looks like on a real screen: a customer clicks the sign-in button, lands on a consent page with your app's name and requested scopes, and chooses. If they choose no, they should arrive somewhere useful. That somewhere is your redirect URI, receiving an error instead of a code. The screen you show them at that moment is entirely your design decision. RFC 6749 governs how the error arrives; your product team decides what the customer sees once it does.
Reviewers should test this path manually. Decline on a desktop browser. Decline on mobile. Decline when the customer has a blocker running. Reviewers should also check what the customer sees when no error or code arrives at all, such as when a browser blocker stops the redirect. Read every one of them.
Section 4.1.3: the code exchange after grant
OpenID Connect Core cites section 4.1.3 by number: "Section 4.1.3 of OAuth 2.0 (Hardt, D., Ed., “The OAuth 2.0 Authorization Framework,” October 2012.) [RFC6749]." This is the step that happens after the customer grants. The OpenID specification cites it by name: "Section 4.1.3 of OAuth 2.0 (Hardt, D., Ed., “The OAuth 2.0 Authorization Framework,” October 2012.) [RFC6749]." This is the step that happens after the customer grants.
What this means at your screen: the grant returns a code to your redirect URI. Your server then exchanges that code for tokens. Section 4.1.3 describes how that exchange works.
The customer's role in this step is finished. They clicked approve and moved on. The exchange between your server and the access endpoint is now running behind the scenes. If it fails, the customer has no visibility into why. They see an error, or they see nothing at all, and they have no way to diagnose it.
That is the failure mode to watch for during review. The decline path fails in front of the customer, where they can at least understand what happened. The grant path can fail behind them, after they have already committed to the action. Test the grant path as carefully as you test the decline path.
Here is how the four cited sections line up at the moment a customer acts:
| Section | RFC 6749 topic | What the customer's action triggers |
|---|---|---|
| 4.1.2.1 | Authorization endpoint error response | Decline sends an error to your URI |
| 4.1.3 | Access request | Grant starts the code-to-access exchange |
| 10.12 | Access security considerations | Risks attached to the granted credential |
| 10.13 | Refresh security considerations | Risks attached to any refresh credential issued |
Source: section numbers as cited by OpenID Connect Core 1.0; topic labels summarised by the author from RFC 6749.
Section 10.12: access risks after the grant
OpenID Connect Core cites section 10.12 alongside 10.13: "Sections 10.12 and 10.13 of OAuth 2.0 (Hardt, D., Ed., “The OAuth 2.0 Authorization Framework,” October 2012.) [RFC6749]." The OpenID specification cites it alongside 10.13 when discussing OAuth 2.0's security considerations: "Sections 10.12 and 10.13 of OAuth 2.0 (Hardt, D., Ed., “The OAuth 2.0 Authorization Framework,” October 2012.) [RFC6749]."
What this means at your screen: the customer has granted. Your flow now holds an access credential. This section is about what that credential can do if it ends up somewhere you did not plan.
Anyone holding the access credential can use it within its scope and lifetime. Anyone holding it can use it within its scope and lifetime. Your review should ask two things: what scope did the customer see on the consent screen, and how long does the access credential live.
Scope is what you request; lifetime should be confirmed with your authorization server. A broader scope means a wider blast radius if the access credential leaks. A longer lifetime means more time for that leak to go unnoticed.
The OpenID specification cites this section. It points back to OAuth 2.0's text rather than restating it. Read the cited section itself for the details that apply to your flow.
One requirement RFC 6749 states reads: "The client MUST ignore unrecognized value names in the response." Your client should not act on parameters it does not recognize, whether they arrive at the redirect or the access response.
A growth lead can turn this into a concrete review question. Ask your engineering team: what scope appears on the consent screen, and does the access request match it exactly? Ask: how long does the access credential live before it expires? Neither question requires reading the full section to ask; both require reading it to understand the tradeoffs when the answer comes back.
Section 10.13: refresh risks when the session lasts
Section 10.13 appears in the same citation as 10.12: "Sections 10.12 and 10.13 of OAuth 2.0 (Hardt, D., Ed., “The OAuth 2.0 Authorization Framework,” October 2012.) [RFC6749]."
What this means at your screen: if your flow asks for a long session, a refresh credential may be issued. This section is about the risks that come with it.
A refresh credential outlives the access credential. That is its purpose. It is also why it deserves a second look during review.
Ask whether your flow needs a refresh credential at all. If the customer's session is short, you may not need one. If you do issue one, treat it with at least the care you give the access credential.
The customer rarely sees the refresh credential. But its existence is a direct consequence of what the customer granted. Check with your platform whether refreshed credentials keep the approved scope.
The practical distinction at review time: the access credential is the thing that goes out into the world and can be seen in transit. The refresh credential is the thing that stays behind and keeps working after the access credential has expired. One is a short-term risk; the other is a long-term one. Both come from the same customer action on the same screen.
Together, sections 10.12 and 10.13 form the back half of what the OpenID specification cites from RFC 6749. The first half, 4.1.2.1 and 4.1.3, covers the grant-or-decline step and the code exchange that follows a grant. The second half covers what the decision leaves behind.
What to check before you ship the button
Run these checks against your flow before the sign-in button goes live.
Redirect handler has two doors. One for the code on grant. One for the error on decline. Both must work.
Scope on screen matches scope in request. The customer approved what you showed them. Your request must not ask for more after the fact.
Code exchange tested end to end. Section 4.1.3's step must succeed after a real grant, not just in a mock.
Unrecognized parameters ignored. RFC 6749 requires clients to ignore value names they do not recognize in the response.
Refresh justified. Issue one only if the session needs it. Section 10.13's risks apply when you do.
Decline path is a real screen. A customer who declines should land somewhere useful, not on a blank page or a raw error.
The OpenID specification cites four RFC 6749 sections at the section level. 10.12 and 10.13 share one citation, so there are three section-level citations in total. Those four citations are your map. One covers the decline error (4.1.2.1), and 4.1.3 covers the code exchange that follows a grant. Two cover what the decision leaves behind.
Related guides: OAuth install at signup: 6 steps to hand off a new account · Sign-in prompts: 4 lifetimes to check first · Trial sign-in length: 3 figures for session planning.
Questions growth leads ask
What does a customer actually see when they decline? The endpoint sends an error to your redirect URI. Pipedrive describes its own version as the corresponding error being sent to the URL. Your screen then decides what to show. RFC 6749's section 4.1.2.1 is the text that governs this error response.
Can the customer change their mind after granting? The spec text you have does not address revocation after a grant. Ask your platform's support team how a customer withdraws access, and make sure your own UI links to that path.
Which of the four sections should I read first? Start with 4.1.2.1. Start with 4.1.2.1, because it is the first thing a customer exercises when they say no.
Does the OpenID specification replace RFC 6749? No. The specification cites four RFC 6749 sections at the section level (10.12 and 10.13 share one citation) and cites RFC 6749 once as a whole. It builds on the framework rather than replacing it.
What is the difference between sections 10.12 and 10.13? Section 10.12 covers access tokens. Section 10.13 covers refresh tokens. Both are security considerations. The refresh credential outlives the access credential, which is the practical difference at review time.
Where do I find the exact wording of each section? Read RFC 6749 directly.