# Connect to Google Drive using Angular, REST services, OAuth and Radzen

> Connect to Google Drive using Angular, REST services, OAuth and Radzen

This blog post demonstrates how to create an Angular app with Radzen that will access [Google Drive](https://drive.google.com) using OAuth authorization!

1. Create new OAuth credentials in [Google Console](https://console.developers.google.com) for Web Application:
![image](images/blog/google-console1.png)
![image](images/blog/google-console2.png)
![image](images/blog/google-console3.png)
1. Create REST data-source with OAuth authorization in Radzen with following settings:
- End point: `https://www.googleapis.com/drive/v3`
- ClientID: Your ClientID from step 1.
- Authorization Url: `https://accounts.google.com/o/oauth2/auth`
- Scope: `https://www.googleapis.com/auth/drive`
![image](images/blog/google-drive1.png)
![image](images/blog/google-drive2.png)
![image](images/blog/google-drive3.png)
1. Create new page, call `getFiles()` method on __Page__ __Load__ event and assign `${result.files}` to `files` variable.
![image](images/blog/google-drive4.png)
1. Drag and drop __DataGrid__ component from Radzen toolbox, bind it to `files` and add desired columns.
![image](images/blog/google-drive5.png)
1. Run the application, login using your Google credentials and browse your Drive files and folders.
![image](images/blog/google-drive6.png)
![image](images/blog/google-drive7.png)

Enjoy!
