ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
OAuth 2.0
Andreas ?kre Solberg, UNINETT AS

March 19th, 2013
Authorization code                                          Token
      ?ow                                                  storage




                                     Authorization
        Feide                                                          Resource server
                                        server
         aut




                                              iss
            hen




                                                                             ted g
                                                                                   i
                                                                                ap
                                                                          tec sin
                                               ues
            tica




                                nt




                                                                       pro cces
                              gra




                                                    tok
                tes




                                                                          a
                                                      ne
                                                              Client


                   Resource owner
                    (with browser)
Implicit grant                                              Token
    ?ow                                                    storage




                                 Authorization
   Feide                                                                                         Resource server
                                    server




                                   grant                                                              i
                                                                                                 ap
                                           issues token
           au
            th




                                                                                             d
                                                                                          te
               ent




                                                                                    e   c
                  ic




                                                                                  ot
                   at




                                                                            p   r
                     es




                                                                   i   ng
                                                                  s
                                                            c  es
                                                          ac

                                   browser

                          Resource owner
                           (with browser)
?   Authorization Code

?   Implicit Grant

?   (Resource Owner Password Credentials)

?   (Client Credentials)
?   Accessing protected API



?   How do we obtain the token?

                                                                                       Token
                                                                                      storage




                                                               Authorization
                                  Feide                                                           Resource server
                                                                  server




                                   aut




                                                                        iss
                                      hen




                                                                                                        ted g
                                                                                                              i
                                                                                                           ap
                                                                                                     tec sin
                                                                         ues
                                      tica




                                                          nt




                                                                                                  pro cces
                                                        gra




                                                                              tok
                                          tes




                                                                                                     a
                                                                                n e
                                                                                         Client


                                             Resource owner
                                              (with browser)
Authorization Code Flow


?   Authorization Request




?   User authenticates                                                                  Token
                                                                                       storage




?   User accepts client grant      Feide
                                                                Authorization
                                                                   server
                                                                                                   Resource server



                                    aut




                                                                         iss
                                       hen




                                                                                                         ted g
                                                                                                               i
                                                                                                            ap
                                                                                                      tec sin
                                                                          ues
                                       tica




                                                           nt




                                                                                                   pro cces
                                                         gra




                                                                               tok
                                           tes




                                                                                                      a
                                                                                 n e
                                                                                          Client


                                              Resource owner
                                               (with browser)
?   Access token request




                                                                                 Token
                                                                                storage
?   Access token response
                                                         Authorization
                            Feide                                                           Resource server
                                                            server



                             aut




                                                                  iss
                                hen




                                                                                                  ted g
                                                                                                        i
                                                                                                     ap
                                                                                               tec sin
                                                                   ues
                                tica




                                                    nt




                                                                                            pro cces
                                                  gra




                                                                        tok
                                    tes




                                                                                               a
                                                                          n e
                                                                                   Client


                                       Resource owner
                                        (with browser)
Implicit Grant Flow


?   Authorization Request




?   User authenticates                                                                      Token
                                                                                           storage




?   User accepts client grant     Feide
                                                                 Authorization
                                                                                                                            Resource server
                                                                    server




                                                                   grant
                                                                                                                                 i
                                                                                                                            ap




                                                                           issues token
                                          au
                                           th                                                                          ed
                                              ent                                                                e   ct
                                                 ic                                                            ot
                                                   at                                                        pr
                                                     es                                                  g
                                                                                                   sin
                                                                                            c   es
                                                                                          ac

                                                                   browser

                                                          Resource owner
                                                           (with browser)
Client                                      Token
                 storage                                     storage




  Client                                     Authorization
                 Feide                                                   Resource server
Management                                      server




                                                                Client


 Client owner              Resource owner
(with browser)              (with browser)
Resource server




UWAP
                            Token           Client
                           storage         storage

                                                      Feide

            SOA          Authorization     Client
         Gatekeeper         server       Management




                                           Client
           Client
                                           owner

More Related Content

More from Andreas ?kre Solberg (20)

Dataporten Workshop
Dataporten WorkshopDataporten Workshop
Dataporten Workshop
Andreas ?kre Solberg
?
Dataporten
DataportenDataporten
Dataporten
Andreas ?kre Solberg
?
Dataporten for Sigma2, Hell
Dataporten for Sigma2, HellDataporten for Sigma2, Hell
Dataporten for Sigma2, Hell
Andreas ?kre Solberg
?
Dataporten intro (workshop with Difi)
Dataporten intro (workshop with Difi)Dataporten intro (workshop with Difi)
Dataporten intro (workshop with Difi)
Andreas ?kre Solberg
?
UNINETT Feide Connect (Feide fagdag)
UNINETT Feide Connect (Feide fagdag)UNINETT Feide Connect (Feide fagdag)
UNINETT Feide Connect (Feide fagdag)
Andreas ?kre Solberg
?
Connect (UNINETT-konferansen, Troms?)
Connect (UNINETT-konferansen, Troms?)Connect (UNINETT-konferansen, Troms?)
Connect (UNINETT-konferansen, Troms?)
Andreas ?kre Solberg
?
Connect (USIT)
Connect (USIT)Connect (USIT)
Connect (USIT)
Andreas ?kre Solberg
?
Norsk UH-sektor og ?kosystemer for identitet og integrasjoner i skyen
Norsk UH-sektor og ?kosystemer for identitet og integrasjoner i skyenNorsk UH-sektor og ?kosystemer for identitet og integrasjoner i skyen
Norsk UH-sektor og ?kosystemer for identitet og integrasjoner i skyen
Andreas ?kre Solberg
?
Feide Connect ¨C Standard Norge February 2015
Feide Connect ¨C Standard Norge February 2015Feide Connect ¨C Standard Norge February 2015
Feide Connect ¨C Standard Norge February 2015
Andreas ?kre Solberg
?
Feide Connect SUHS 2014
Feide Connect SUHS 2014Feide Connect SUHS 2014
Feide Connect SUHS 2014
Andreas ?kre Solberg
?
Feide Connect (NOKIOS 2014)
Feide Connect (NOKIOS 2014)Feide Connect (NOKIOS 2014)
Feide Connect (NOKIOS 2014)
Andreas ?kre Solberg
?
Feide Connect TNC2014
Feide Connect TNC2014Feide Connect TNC2014
Feide Connect TNC2014
Andreas ?kre Solberg
?
Feide connect tnc2014
Feide connect   tnc2014Feide connect   tnc2014
Feide connect tnc2014
Andreas ?kre Solberg
?
SCIM and VOOT
SCIM and VOOTSCIM and VOOT
SCIM and VOOT
Andreas ?kre Solberg
?
Feide Connect (IoU Fagdag)
Feide Connect (IoU Fagdag)Feide Connect (IoU Fagdag)
Feide Connect (IoU Fagdag)
Andreas ?kre Solberg
?
Feide Connect
Feide ConnectFeide Connect
Feide Connect
Andreas ?kre Solberg
?
Feide Connect
Feide ConnectFeide Connect
Feide Connect
Andreas ?kre Solberg
?
UWAP Tjenesteplattform
UWAP TjenesteplattformUWAP Tjenesteplattform
UWAP Tjenesteplattform
Andreas ?kre Solberg
?
UNINETT IoU - UWAP Prototype
UNINETT IoU - UWAP PrototypeUNINETT IoU - UWAP Prototype
UNINETT IoU - UWAP Prototype
Andreas ?kre Solberg
?

Recently uploaded (20)

Technology use over time and its impact on consumers and businesses.pptx
Technology use over time and its impact on consumers and businesses.pptxTechnology use over time and its impact on consumers and businesses.pptx
Technology use over time and its impact on consumers and businesses.pptx
kaylagaze
?
Both Feet on the Ground - Generative Artificial Intelligence
Both Feet on the Ground - Generative Artificial IntelligenceBoth Feet on the Ground - Generative Artificial Intelligence
Both Feet on the Ground - Generative Artificial Intelligence
Pete Nieminen
?
Replacing RocksDB with ScyllaDB in Kafka Streams by Almog Gavra
Replacing RocksDB with ScyllaDB in Kafka Streams by Almog GavraReplacing RocksDB with ScyllaDB in Kafka Streams by Almog Gavra
Replacing RocksDB with ScyllaDB in Kafka Streams by Almog Gavra
ScyllaDB
?
Stronger Together: Combining Data Quality and Governance for Confident AI & A...
Stronger Together: Combining Data Quality and Governance for Confident AI & A...Stronger Together: Combining Data Quality and Governance for Confident AI & A...
Stronger Together: Combining Data Quality and Governance for Confident AI & A...
Precisely
?
Integrated Operating Window - A Gateway to PM
Integrated Operating Window - A Gateway to PMIntegrated Operating Window - A Gateway to PM
Integrated Operating Window - A Gateway to PM
Farhan Tariq
?
DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (ƽɽÒã)
DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (ƽɽÒã)DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (ƽɽÒã)
DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (ƽɽÒã)
Tsuyoshi Hirayama
?
What Makes "Deep Research"? A Dive into AI Agents
What Makes "Deep Research"? A Dive into AI AgentsWhat Makes "Deep Research"? A Dive into AI Agents
What Makes "Deep Research"? A Dive into AI Agents
Zilliz
?
L01 Introduction to Nanoindentation - What is hardness
L01 Introduction to Nanoindentation - What is hardnessL01 Introduction to Nanoindentation - What is hardness
L01 Introduction to Nanoindentation - What is hardness
RostislavDaniel
?
Unlock AI Creativity: Image Generation with DALL¡¤E
Unlock AI Creativity: Image Generation with DALL¡¤EUnlock AI Creativity: Image Generation with DALL¡¤E
Unlock AI Creativity: Image Generation with DALL¡¤E
Expeed Software
?
30B Images and Counting: Scaling Canva's Content-Understanding Pipelines by K...
30B Images and Counting: Scaling Canva's Content-Understanding Pipelines by K...30B Images and Counting: Scaling Canva's Content-Understanding Pipelines by K...
30B Images and Counting: Scaling Canva's Content-Understanding Pipelines by K...
ScyllaDB
?
[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps
[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps
[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps
Safe Software
?
AIXMOOC 2.3 - Modelli di reti neurali con esperimenti di addestramento
AIXMOOC 2.3 - Modelli di reti neurali con esperimenti di addestramentoAIXMOOC 2.3 - Modelli di reti neurali con esperimenti di addestramento
AIXMOOC 2.3 - Modelli di reti neurali con esperimenti di addestramento
Alessandro Bogliolo
?
FinTech - US Annual Funding Report - 2024.pptx
FinTech - US Annual Funding Report - 2024.pptxFinTech - US Annual Funding Report - 2024.pptx
FinTech - US Annual Funding Report - 2024.pptx
Tracxn
?
Formal Methods: Whence and Whither? [Martin Fr?nzle Festkolloquium, 2025]
Formal Methods: Whence and Whither? [Martin Fr?nzle Festkolloquium, 2025]Formal Methods: Whence and Whither? [Martin Fr?nzle Festkolloquium, 2025]
Formal Methods: Whence and Whither? [Martin Fr?nzle Festkolloquium, 2025]
Jonathan Bowen
?
Field Device Management Market Report 2030 - TechSci Research
Field Device Management Market Report 2030 - TechSci ResearchField Device Management Market Report 2030 - TechSci Research
Field Device Management Market Report 2030 - TechSci Research
Vipin Mishra
?
Understanding Traditional AI with Custom Vision & MuleSoft.pptx
Understanding Traditional AI with Custom Vision & MuleSoft.pptxUnderstanding Traditional AI with Custom Vision & MuleSoft.pptx
Understanding Traditional AI with Custom Vision & MuleSoft.pptx
shyamraj55
?
DealBook of Ukraine: 2025 edition | AVentures Capital
DealBook of Ukraine: 2025 edition | AVentures CapitalDealBook of Ukraine: 2025 edition | AVentures Capital
DealBook of Ukraine: 2025 edition | AVentures Capital
Yevgen Sysoyev
?
SMART SENTRY CYBER THREAT INTELLIGENCE IN IIOT
SMART SENTRY CYBER THREAT INTELLIGENCE IN IIOTSMART SENTRY CYBER THREAT INTELLIGENCE IN IIOT
SMART SENTRY CYBER THREAT INTELLIGENCE IN IIOT
TanmaiArni
?
Early Adopter's Guide to AI Moderation (Preview)
Early Adopter's Guide to AI Moderation (Preview)Early Adopter's Guide to AI Moderation (Preview)
Early Adopter's Guide to AI Moderation (Preview)
nick896721
?
Cloud of everything Tech of the 21 century in Aviation
Cloud of everything Tech of the 21 century in AviationCloud of everything Tech of the 21 century in Aviation
Cloud of everything Tech of the 21 century in Aviation
Assem mousa
?
Technology use over time and its impact on consumers and businesses.pptx
Technology use over time and its impact on consumers and businesses.pptxTechnology use over time and its impact on consumers and businesses.pptx
Technology use over time and its impact on consumers and businesses.pptx
kaylagaze
?
Both Feet on the Ground - Generative Artificial Intelligence
Both Feet on the Ground - Generative Artificial IntelligenceBoth Feet on the Ground - Generative Artificial Intelligence
Both Feet on the Ground - Generative Artificial Intelligence
Pete Nieminen
?
Replacing RocksDB with ScyllaDB in Kafka Streams by Almog Gavra
Replacing RocksDB with ScyllaDB in Kafka Streams by Almog GavraReplacing RocksDB with ScyllaDB in Kafka Streams by Almog Gavra
Replacing RocksDB with ScyllaDB in Kafka Streams by Almog Gavra
ScyllaDB
?
Stronger Together: Combining Data Quality and Governance for Confident AI & A...
Stronger Together: Combining Data Quality and Governance for Confident AI & A...Stronger Together: Combining Data Quality and Governance for Confident AI & A...
Stronger Together: Combining Data Quality and Governance for Confident AI & A...
Precisely
?
Integrated Operating Window - A Gateway to PM
Integrated Operating Window - A Gateway to PMIntegrated Operating Window - A Gateway to PM
Integrated Operating Window - A Gateway to PM
Farhan Tariq
?
DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (ƽɽÒã)
DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (ƽɽÒã)DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (ƽɽÒã)
DAO UTokyo 2025 DLT mass adoption case studies IBM Tsuyoshi Hirayama (ƽɽÒã)
Tsuyoshi Hirayama
?
What Makes "Deep Research"? A Dive into AI Agents
What Makes "Deep Research"? A Dive into AI AgentsWhat Makes "Deep Research"? A Dive into AI Agents
What Makes "Deep Research"? A Dive into AI Agents
Zilliz
?
L01 Introduction to Nanoindentation - What is hardness
L01 Introduction to Nanoindentation - What is hardnessL01 Introduction to Nanoindentation - What is hardness
L01 Introduction to Nanoindentation - What is hardness
RostislavDaniel
?
Unlock AI Creativity: Image Generation with DALL¡¤E
Unlock AI Creativity: Image Generation with DALL¡¤EUnlock AI Creativity: Image Generation with DALL¡¤E
Unlock AI Creativity: Image Generation with DALL¡¤E
Expeed Software
?
30B Images and Counting: Scaling Canva's Content-Understanding Pipelines by K...
30B Images and Counting: Scaling Canva's Content-Understanding Pipelines by K...30B Images and Counting: Scaling Canva's Content-Understanding Pipelines by K...
30B Images and Counting: Scaling Canva's Content-Understanding Pipelines by K...
ScyllaDB
?
[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps
[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps
[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps
Safe Software
?
AIXMOOC 2.3 - Modelli di reti neurali con esperimenti di addestramento
AIXMOOC 2.3 - Modelli di reti neurali con esperimenti di addestramentoAIXMOOC 2.3 - Modelli di reti neurali con esperimenti di addestramento
AIXMOOC 2.3 - Modelli di reti neurali con esperimenti di addestramento
Alessandro Bogliolo
?
FinTech - US Annual Funding Report - 2024.pptx
FinTech - US Annual Funding Report - 2024.pptxFinTech - US Annual Funding Report - 2024.pptx
FinTech - US Annual Funding Report - 2024.pptx
Tracxn
?
Formal Methods: Whence and Whither? [Martin Fr?nzle Festkolloquium, 2025]
Formal Methods: Whence and Whither? [Martin Fr?nzle Festkolloquium, 2025]Formal Methods: Whence and Whither? [Martin Fr?nzle Festkolloquium, 2025]
Formal Methods: Whence and Whither? [Martin Fr?nzle Festkolloquium, 2025]
Jonathan Bowen
?
Field Device Management Market Report 2030 - TechSci Research
Field Device Management Market Report 2030 - TechSci ResearchField Device Management Market Report 2030 - TechSci Research
Field Device Management Market Report 2030 - TechSci Research
Vipin Mishra
?
Understanding Traditional AI with Custom Vision & MuleSoft.pptx
Understanding Traditional AI with Custom Vision & MuleSoft.pptxUnderstanding Traditional AI with Custom Vision & MuleSoft.pptx
Understanding Traditional AI with Custom Vision & MuleSoft.pptx
shyamraj55
?
DealBook of Ukraine: 2025 edition | AVentures Capital
DealBook of Ukraine: 2025 edition | AVentures CapitalDealBook of Ukraine: 2025 edition | AVentures Capital
DealBook of Ukraine: 2025 edition | AVentures Capital
Yevgen Sysoyev
?
SMART SENTRY CYBER THREAT INTELLIGENCE IN IIOT
SMART SENTRY CYBER THREAT INTELLIGENCE IN IIOTSMART SENTRY CYBER THREAT INTELLIGENCE IN IIOT
SMART SENTRY CYBER THREAT INTELLIGENCE IN IIOT
TanmaiArni
?
Early Adopter's Guide to AI Moderation (Preview)
Early Adopter's Guide to AI Moderation (Preview)Early Adopter's Guide to AI Moderation (Preview)
Early Adopter's Guide to AI Moderation (Preview)
nick896721
?
Cloud of everything Tech of the 21 century in Aviation
Cloud of everything Tech of the 21 century in AviationCloud of everything Tech of the 21 century in Aviation
Cloud of everything Tech of the 21 century in Aviation
Assem mousa
?

OAuth 2.0

  • 1. OAuth 2.0 Andreas ?kre Solberg, UNINETT AS March 19th, 2013
  • 2. Authorization code Token ?ow storage Authorization Feide Resource server server aut iss hen ted g i ap tec sin ues tica nt pro cces gra tok tes a ne Client Resource owner (with browser)
  • 3. Implicit grant Token ?ow storage Authorization Feide Resource server server grant i ap issues token au th d te ent e c ic ot at p r es i ng s c es ac browser Resource owner (with browser)
  • 4. ? Authorization Code ? Implicit Grant ? (Resource Owner Password Credentials) ? (Client Credentials)
  • 5. ? Accessing protected API ? How do we obtain the token? Token storage Authorization Feide Resource server server aut iss hen ted g i ap tec sin ues tica nt pro cces gra tok tes a n e Client Resource owner (with browser)
  • 6. Authorization Code Flow ? Authorization Request ? User authenticates Token storage ? User accepts client grant Feide Authorization server Resource server aut iss hen ted g i ap tec sin ues tica nt pro cces gra tok tes a n e Client Resource owner (with browser)
  • 7. ? Access token request Token storage ? Access token response Authorization Feide Resource server server aut iss hen ted g i ap tec sin ues tica nt pro cces gra tok tes a n e Client Resource owner (with browser)
  • 8. Implicit Grant Flow ? Authorization Request ? User authenticates Token storage ? User accepts client grant Feide Authorization Resource server server grant i ap issues token au th ed ent e ct ic ot at pr es g sin c es ac browser Resource owner (with browser)
  • 9. Client Token storage storage Client Authorization Feide Resource server Management server Client Client owner Resource owner (with browser) (with browser)
  • 10. Resource server UWAP Token Client storage storage Feide SOA Authorization Client Gatekeeper server Management Client Client owner