Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
11f75faf
Commit
11f75faf
authored
10 years ago
by
Tim Emiola
Browse files
Options
Downloads
Patches
Plain Diff
Ensures the auth modules are available with just require 'grpc'
- Also fixes some lint issues
parent
4694df3c
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/ruby/lib/grpc.rb
+2
-0
2 additions, 0 deletions
src/ruby/lib/grpc.rb
src/ruby/lib/grpc/auth/signet.rb
+1
-0
1 addition, 0 deletions
src/ruby/lib/grpc/auth/signet.rb
src/ruby/spec/auth/apply_auth_examples.rb
+0
-1
0 additions, 1 deletion
src/ruby/spec/auth/apply_auth_examples.rb
with
3 additions
and
1 deletion
src/ruby/lib/grpc.rb
+
2
−
0
View file @
11f75faf
...
@@ -27,6 +27,8 @@
...
@@ -27,6 +27,8 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
require
'grpc/auth/compute_engine.rb'
require
'grpc/auth/service_account.rb'
require
'grpc/errors'
require
'grpc/errors'
require
'grpc/grpc'
require
'grpc/grpc'
require
'grpc/logconfig'
require
'grpc/logconfig'
...
...
This diff is collapsed.
Click to expand it.
src/ruby/lib/grpc/auth/signet.rb
+
1
−
0
View file @
11f75faf
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
require
'signet/oauth_2/client'
require
'signet/oauth_2/client'
module
Signet
module
Signet
# Signet::OAuth2 supports OAuth2 authentication.
module
OAuth2
module
OAuth2
AUTH_METADATA_KEY
=
:Authorization
AUTH_METADATA_KEY
=
:Authorization
# Signet::OAuth2::Client creates an OAuth2 client
# Signet::OAuth2::Client creates an OAuth2 client
...
...
This diff is collapsed.
Click to expand it.
src/ruby/spec/auth/apply_auth_examples.rb
+
0
−
1
View file @
11f75faf
...
@@ -43,7 +43,6 @@ end
...
@@ -43,7 +43,6 @@ end
WANTED_AUTH_KEY
=
:Authorization
WANTED_AUTH_KEY
=
:Authorization
shared_examples
'apply/apply! are OK'
do
shared_examples
'apply/apply! are OK'
do
# tests that use these examples need to define
# tests that use these examples need to define
#
#
# @client which should be an auth client
# @client which should be an auth client
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment