Skip to Content
Technical Articles

SAP BTP Extension Generators: Authentication and Authorization | Hands-on Video Tutorials

Philip MUGGLESTONE from SAP Partner Innovation Lab and the SAP HANA Academy just released an update to the video tutorial series about the SAP Business Technology Platform extension generators.

In this blog post you will find the videos embedded with references and additional information.

For the related blog posts, visit

Questions? Please post as comment.

Useful? Give us a like and share on social media.

Thanks!

/wp-content/uploads/2016/02/sapnwabline_885687.png

Hands-On Video Tutorials

What You Will Learn

How to install and use the SAP HANA Academy CAP generator for the SAP Business Application studio to create the scaffolding for a business application is explained in three short videos.

What you will learn

  • How to install the generator
  • How to run the generator
  • How the modules and services of the business application are related
  • How and where authentication is configured
  • How and where authorisation is configured
  • How to build and deploy the app to the Cloud Foundry environment of the SAP Business Technology Platform
  • How to clean everything up

Ingredients

To follow along, you’ll need

  • A (free) SAP BTP trial account

About the SAP HANA Academy (C)App Generator

The SAP HANA Academy (C)App generator uses Yeoman to scaffold a business application. This enables us to present a simple yet fully functional business application to jumpstart your app development. Whether you want to create an extension for SAP S/4HANA Cloud, SAP SuccessFactors, or build an application powered by SAP HANA Cloud, you can easily scaffold the app using the generator and adapt the app to your development.

Yeoman generators are extensively used (as extensions) in SAP Business Application Studio and you can easliy add your own. However, the IDE and generator have no dependencies. Yeoman works just a well on the command line (using the yo command) or other IDE’s like Microsoft Visual Studio Code, etc.

For more information about Yeoman generators, visit

/wp-content/uploads/2016/02/sapnwabline_885687.png

SAP HANA Academy (C)App Generator

Video Tutorial

In the first video, we install the generator and generate a sample business application with default settings but leaving authentication and authorization disabled followed by a quick code walkthrough, build and deploy, and review of the result.

0:00 – Introduction

0:30 – SAP Business Technology Platform: environment and requirements

1:00 – SAP Business Application Studio

1:30 – Install generator

1:55 – Template Wizard

3:10 – Code walkthrough

4:30 – Build and deploy

5:00 – Demo 

6:00 – Recap

/wp-content/uploads/2016/02/sapnwabline_885687.png

Authentication

Video Tutorial

In the second video, we generate a new business application, this time with authentication enabled and show the effect on the code and configuration files.

0:00 – Introduction

0:30 – Open Template Wizard

1:00 – xs-app.json

1:40 – catalog-service.cds

2:15 – package.json

2:30 – @sap/xssec and xsenv

3:30 – xs-security.json

4:20 – Undeploy, build, and deploy

4:45 – Demo 

/wp-content/uploads/2016/02/sapnwabline_885687.png

Authorization

Video Tutorial

In the third video, we generate yet another business application, this time with authorization enabled and show the effect on the code and configuration files.

0:00 – Introduction

0:30 – Open Template Wizard

1:10 – xs-app.json

1:50 – catalog-service.cds

2:30 – xs-security.json

4:10 – package.json

4:45 – Undeploy, build, and deploy; mta.yaml 

5:40 – Demo

6:00 – Add Viewer role collection to user

7:30 – Add Admin role collection to user

8:00 – Recap

/wp-content/uploads/2016/02/sapnwabline_885687.png

Additional Resources 

End-to-End Tutorial

For a more detailed coverage of the security model of the Cloud Foundry environment of the SAP Business Technology Platform, see

In this blog post and the accompanying video tutorial series, we build the business application from scratch (without code generator) and discuss the role and function of the XSUAA service, the app router, and the configuration files xs-app.json, xs-security.json, and more with references to the documentation and other blog posts on the community.

New to SAP BTP? See

New to SAP HANA Cloud, see

 

 

/wp-content/uploads/2016/02/sapnwabline_885687.png

Share and Connect 

Questions? Post as comment.

Useful? Give us a like and share on social media. Thanks!

If you would like to receive updates, connect with me on

Be the first to leave a comment
You must be Logged on to comment or reply to a post.