Skip to content

Commit 20a194f

Browse files
committed
Add auth module
1 parent 446ade6 commit 20a194f

File tree

16 files changed

+747
-5
lines changed

16 files changed

+747
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ build/
77
*.war
88
*.ear
99
*.aar
10+
*.iml

auth/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
service-account.json

auth/README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
Firebase Java Auth Quickstart
2+
==========================================
3+
4+
This directory contains example snippets for the Firebase Admin Authentication SDK, mostly for use
5+
in documentation.
6+
7+
8+
Introduction
9+
------------
10+
11+
- [Read more about Firebase Auth](https://firebase.google.com/docs/auth/)
12+
13+
Getting Started
14+
---------------
15+
16+
- Create your project on the [Firebase Console](https://console.firebase.google.com).
17+
- Create a service account as described in [Adding Firebase to your Server](https://firebase.google.com/docs/admin/setup) and download the JSON file.
18+
- Copy the json file to this folder and rename it to `service-account.json`.
19+
20+
21+
Run
22+
--------------
23+
- From the `auth` directory run `./gradlew build run` to start run the quickstart.
24+
25+
Support
26+
-------
27+
28+
https://firebase.google.com/support/
29+
30+
License
31+
-------
32+
33+
© Google, 2017. Licensed under an [Apache-2](../LICENSE) license.

auth/build.gradle

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
group 'com.google.firebase.quickstart'
2+
version '1.0'
3+
4+
apply plugin: 'groovy'
5+
apply plugin: 'java'
6+
7+
apply plugin: 'application'
8+
mainClassName = 'com.google.firebase.quickstart.AuthSnippets'
9+
10+
sourceCompatibility = 1.8
11+
12+
repositories {
13+
mavenCentral()
14+
mavenLocal()
15+
}
16+
17+
dependencies {
18+
// Firebase Java SDK
19+
compile 'com.google.firebase:firebase-admin:5.0.2-SNAPSHOT'
20+
}
52.9 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Mon Jun 05 12:47:30 PDT 2017
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-bin.zip

auth/gradlew

Lines changed: 172 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

auth/gradlew.bat

Lines changed: 84 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)