Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Creating an OAuth2-powered web app

Pragya Keshap answered on February 15, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • the oauth 2.0 authorization framework
  • scoped based authorization with OAuth2
  • WebClient OAuth2 configuration

  • Creating an OAuth2-powered web app

    0

    The preceding web controller has some key points:

    @Controller indicates that this is a template-based web controller. Each web method returns the name of a template to render.

    We are injecting the YouTube service through constructor injection, a concept touched upon back in Chapter 2, Creating a Web Application with Spring Boot.

    The index method has a Spring MVC Model object, where we create a channelVideos attribute. It invokes our YouTube service’s channelVideos method with a channel ID, a page size of 10, and uses view counts as the way to sort search results.

    The name of the template to render is index.

    Popularity 1/10 Helpfulness 1/10 Language java
    Source: Grepper
    Tags: java web
    Link to this answer
    Share Copy Link
    Contributed on Feb 15 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.